1
0
forked from MTSR/mapserver
mapserver/public/js/map/overlays/DigitermOverlay.js
2021-04-12 13:03:10 +02:00

20 lines
474 B
JavaScript

import AbstractIconOverlay from './AbstractIconOverlay.js';
var DigitermIcon = L.icon({
iconUrl: 'pics/digiterms_beige_front.png',
iconSize: [16, 16],
iconAnchor: [8, 8],
popupAnchor: [0, -16]
});
export default AbstractIconOverlay.extend({
initialize: function() {
AbstractIconOverlay.prototype.initialize.call(this, "digiterm", DigitermIcon);
},
createPopup: function(lcd){
return "<pre>" + lcd.attributes.display_text + "</pre>";
}
});