forked from MTSR/mapserver
25 lines
636 B
JavaScript
25 lines
636 B
JavaScript
import AbstractIconOverlay from './AbstractIconOverlay.js';
|
|
|
|
export default AbstractIconOverlay.extend({
|
|
initialize: function(wsChannel, layerMgr) {
|
|
AbstractIconOverlay.prototype.initialize.call(this, wsChannel, layerMgr, "poi");
|
|
},
|
|
|
|
getIcon: function(obj){
|
|
return L.AwesomeMarkers.icon({
|
|
icon: obj.attributes.icon || "home",
|
|
prefix: "fa",
|
|
markerColor: obj.attributes.color || "blue"
|
|
});
|
|
},
|
|
|
|
getMaxDisplayedZoom: function(){
|
|
return 5;
|
|
},
|
|
|
|
createPopup: function(poi){
|
|
return "<h4>" + poi.attributes.name + "</h4><hr>" +
|
|
"<b>Owner: </b> " + poi.attributes.owner + "<br>";
|
|
}
|
|
});
|