Commit fd662f5a authored by Piotr Gawron's avatar Piotr Gawron
Browse files

lint issues

parent 4ab7be22
......@@ -75,7 +75,6 @@ AbstractMarker.prototype.show = function () {
logger.warn("Marker is already shown");
} else {
this.getGoogleMarker().setMap(this.getCustomMap().getGoogleMap());
return;
}
};
AbstractMarker.prototype.hide = function () {
......@@ -87,14 +86,13 @@ AbstractMarker.prototype.hide = function () {
logger.warn("Marker is already invisible");
} else {
this.getGoogleMarker().setMap(null);
return;
}
};
/**
* Returns {@link AbstractCustomMap} where marker is located.
*
* @returns {@link AbstractCustomMap} where marker is located
* @returns AbstractCustomMap where marker is located
*/
AbstractMarker.prototype.getCustomMap = function () {
return this._map;
......@@ -105,17 +103,15 @@ AbstractMarker.prototype.setCustomMap = function (map) {
};
/**
* Returns {@link google.maps.Bounds bounds} of the marker (it's a single
* point).
* Returns google.maps.LatLngBounds of the marker (it's a single point).
*
* @returns {@link google.maps.Bounds bounds} of the marker (it's a single
* point)
* @returns google.maps.LatLngBounds bounds of the marker (it's a single point)
*/
AbstractMarker.prototype.getBounds = function () {
var marker = this.getGoogleMarker();
if (marker === undefined || marker === null) {
logger.warn("Marker not initialized");
return;
return null;
}
var bounds = new google.maps.LatLngBounds();
bounds.extend(marker.position);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment