mapserver/server/static/js/overlays/TravelnetOverlay.js
2019-02-01 13:20:50 +01:00

33 lines
641 B
JavaScript

'use strict';
var TravelnetIcon = L.icon({
iconUrl: 'pics/travelnet_inv.png',
iconSize: [64, 64],
iconAnchor: [32, 32],
popupAnchor: [0, -32]
});
var TravelnetOverlay = L.LayerGroup.extend({
initialize: function(wsChannel, layerMgr) {
},
onAdd: function(map) {
console.log("TravelnetOverlay.onAdd", map);
map.on('baselayerchange', function (e) {
console.log("baselayerchange", e.layer);
});
api.getMapObjects(-10,-10,-10,10,10,10,"travelnet")
.then(function(list){
console.log(list);
})
},
onRemove: function(map) {
console.log("TravelnetOverlay.onRemove");
}
});