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

JSdoc fixed

parent bbbec83d
No related branches found
No related tags found
1 merge request!295Resolve "alternative to google maps api way of visualizing maps"
......@@ -47,12 +47,17 @@ OpenLayerMarker.prototype.show = function () {
/**
*
* @returns {Promise} that resolves after all listeners are resolved
* @returns {Promise|PromiseLike} that resolves after all listeners are resolved
*/
OpenLayerMarker.prototype.hide = function () {
this.getOpenLayerMarker().setStyle(new ol.style.Style({}));
return this.callListeners("onHide");
};
/**
*
* @returns {boolean}
*/
OpenLayerMarker.prototype.isShown = function () {
var feature = this.getOpenLayerMarker();
return feature.getStyle().getImage() !== null;
......@@ -66,6 +71,10 @@ OpenLayerMarker.prototype.getBounds = function () {
return new Bounds(this.getMap().fromProjectionToPoint(this.getOpenLayerMarker().getGeometry().getCoordinates()));
};
/**
*
* @param {string} icon
*/
OpenLayerMarker.prototype.setIcon = function (icon) {
this._icon = icon;
this.getOpenLayerMarker().setStyle(new ol.style.Style({
......
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