mapserver/server/static/js/overlays/LcdOverlay.js
2019-02-08 10:07:59 +01:00

20 lines
441 B
JavaScript

'use strict';
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>";
}
});