forked from MTSR/mapserver
20 lines
445 B
JavaScript
20 lines
445 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(bones){
|
||
|
return "<pre>" + bones.attributes.text + "</pre>";
|
||
|
}
|
||
|
});
|