1
0
forked from MTSR/mapserver
mapserver/server/static/js/overlays/LcdOverlay.js

20 lines
441 B
JavaScript
Raw Normal View History

2019-02-08 10:48:34 +03:00
'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);
},
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
}
});