diff --git a/frontend-js/src/main/js/map/marker/AliasMarker.js b/frontend-js/src/main/js/map/marker/AliasMarker.js index 2b6c66c608c0770241c06a2e7d822462e787033b..a74a1a7bac3e04a3d78c6bf2297b60ace970ee48 100644 --- a/frontend-js/src/main/js/map/marker/AliasMarker.js +++ b/frontend-js/src/main/js/map/marker/AliasMarker.js @@ -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 () {