Layer1 = L.supermap.tiledMapLayer(url1, {noWrap: true});
Layer2 = L.supermap.tiledMapLayer(url2, {noWrap: true});
Layer3 = L.supermap.tiledMapLayer(url3, {noWrap: true});
Layer4 = L.supermap.tiledMapLayer(url4, {noWrap: true});
var map = L.map('map', {
center: [32.67, 109.06],
maxZoom: 18,
zoom: 4,
zoomControl: false,
layers: [Layer1] //默认打开
});
var baseMaps = {
"Layer1": Layer1,
"Layer2": Layer2,
"Layer3": Layer3,
"Layer4":Layer4,
};
L.control.layers(baseMaps).addTo(map);
tiledMapLayer切换不同的图层如何触发function事件?