mapserver/server/static/js/overlays/TravelnetOverlay.js

32 lines
650 B
JavaScript
Raw Normal View History

2019-01-29 20:08:54 +03:00
var TravelnetOverlay = (function(){
'use strict';
var TravelnetIcon = L.icon({
iconUrl: 'pics/travelnet_inv.png',
iconSize: [64, 64],
iconAnchor: [32, 32],
popupAnchor: [0, -32]
});
return L.LayerGroup.extend({
onAdd: function(map) {
2019-01-29 23:07:29 +03:00
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);
})
2019-01-29 20:08:54 +03:00
},
onRemove: function(map) {
console.log("TravelnetOverlay.onRemove");
}
});
}());