Skip to content
Snippets Groups Projects
Commit 0b7b1cad authored by Piotr Gawron's avatar Piotr Gawron
Browse files

reference to alias data changed into getters

parent d509f58c
No related branches found
No related tags found
1 merge request!177Small refactor
......@@ -40,8 +40,8 @@ AliasMarker.prototype.setAliasData = function (data) {
* @returns {google.maps.Point} - coordinates where marker is pointing
*/
AliasMarker.prototype.getCoordinates = function () {
return new google.maps.Point(this._aliasData.x + this._aliasData.width / 2, this._aliasData.y
+ this._aliasData.height / 2);
var alias = this.getAliasData();
return new google.maps.Point(alias.getX() + alias.getWidth() / 2, alias.getY() + alias.getHeight() / 2);
};
AliasMarker.prototype.init = function () {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment