1
0
forked from MTSR/mapserver
mapserver/server/static/js/overlays/LabelOverlay.js
NatureFreshMilk 34ebe37c66 label overlay
2019-02-08 15:12:40 +01:00

16 lines
379 B
JavaScript

'use strict';
var LabelOverlay = AbstractIconOverlay.extend({
initialize: function(wsChannel, layerMgr) {
AbstractIconOverlay.prototype.initialize.call(this, wsChannel, layerMgr, "digiterm");
},
getIcon: function(lbl){
return L.divIcon({html: lbl.attributes.text});
},
createPopup: function(lbl){
return "<pre>" + lbl.attributes.text + "</pre>";
}
});