fix:修复地图无限滚动的问题 & legend option添加悬浮背景色

This commit is contained in:
wangwenrui
2020-11-02 10:32:23 +08:00
parent 4ee5f94cc0
commit b06b275adb
4 changed files with 10 additions and 4 deletions

View File

@@ -793,6 +793,7 @@
maxZoom:mapConfig.maxZoom,
attributionControl:false,
zoomControl:false,
maxBounds:L.latLngBounds(L.latLng(-90,-180),L.latLng(90,180))
}).setView([mapConfig.latitude,mapConfig.longitude],mapConfig.zoom);
map.createPane("myPane", document.querySelector(".my-pane"));
map.on("tooltipopen", function(param) {
@@ -805,7 +806,8 @@
this.map = map;
L.tileLayer(
"/static/Tiles/{z}/{x}/{y}.png"
"/static/Tiles/{z}/{x}/{y}.png",
{noWrap:true}
).addTo(map);
let attribution=L.control.attribution({position:'bottomright',prefix:''})