1
0
forked from MTSR/mapserver
mapserver/public/js/map/overlays/LcdOverlay.js

20 lines
445 B
JavaScript
Raw Normal View History

2019-06-11 16:01:16 +03:00
import AbstractIconOverlay from './AbstractIconOverlay.js';
2019-02-08 10:48:34 +03:00
var LcdIcon = L.icon({
iconUrl: 'pics/lcd_lcd.png',
iconSize: [16, 16],
iconAnchor: [8, 8],
popupAnchor: [0, -16]
});
2019-06-11 16:01:16 +03:00
export default AbstractIconOverlay.extend({
2019-09-18 12:53:58 +03:00
initialize: function() {
AbstractIconOverlay.prototype.initialize.call(this, "digilinelcd", LcdIcon);
2019-02-08 10:48:34 +03:00
},
2019-02-08 12:07:59 +03:00
createPopup: function(lcd){
return "<pre>" + lcd.attributes.text + "</pre>";
2019-02-08 10:48:34 +03:00
}
});