forked from MTSR/mapserver
21 lines
493 B
JavaScript
21 lines
493 B
JavaScript
/* exported LcdOverlay */
|
|
/* globals AbstractIconOverlay: true */
|
|
|
|
var LcdIcon = L.icon({
|
|
iconUrl: 'pics/lcd_lcd.png',
|
|
|
|
iconSize: [16, 16],
|
|
iconAnchor: [8, 8],
|
|
popupAnchor: [0, -16]
|
|
});
|
|
|
|
var LcdOverlay = AbstractIconOverlay.extend({
|
|
initialize: function(wsChannel, layerMgr) {
|
|
AbstractIconOverlay.prototype.initialize.call(this, wsChannel, layerMgr, "digilinelcd", LcdIcon);
|
|
},
|
|
|
|
createPopup: function(lcd){
|
|
return "<pre>" + lcd.attributes.text + "</pre>";
|
|
}
|
|
});
|