1
0
forked from MTSR/mapserver
mapserver/static/js/overlays/DigitermOverlay.js

20 lines
514 B
JavaScript
Raw Normal View History

2019-06-11 15:16:41 +03:00
import AbstractIconOverlay from './AbstractIconOverlay.js';
2019-02-08 12:07:59 +03:00
var DigitermIcon = L.icon({
iconUrl: 'pics/digiterms_beige_front.png',
iconSize: [16, 16],
iconAnchor: [8, 8],
popupAnchor: [0, -16]
});
2019-06-11 15:16:41 +03:00
export default AbstractIconOverlay.extend({
2019-02-08 12:07:59 +03:00
initialize: function(wsChannel, layerMgr) {
AbstractIconOverlay.prototype.initialize.call(this, wsChannel, layerMgr, "digiterm", DigitermIcon);
},
createPopup: function(lcd){
return "<pre>" + lcd.attributes.display_text + "</pre>";
}
});