Skip to content

Commit 04acb0d

Browse files
author
潘卓然Y7000P
committed
【站点】【修复】【修复Leaflet的矢量瓦片显示问题】
1 parent b4efe94 commit 04acb0d

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

website/public/static/demo/leaflet/example/client-view/vectortile/darkstyle.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
var token = 'pk.eyJ1IjoicGFybmRlZWRsaXQiLCJhIjoiY2o1MjBtYTRuMDhpaTMzbXhpdjd3YzhjdCJ9.sCoubaHF9-nhGTA-sgz0sA'
4141
var gl = L.mapboxGL({
4242
accessToken: token,
43-
style: `${protocol}://${ip}:${port}/igs/rest/mrms/vtiles/styles/黑暗样式.json`
43+
style: `${protocol}://${ip}:${port}/igs/rest/mrms/vtiles/styles/深色-墨卡托.json`
4444
}).addTo(map);
4545
}
4646
</script>

website/public/static/demo/leaflet/example/client-view/vectortile/lightstyle.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
var token = 'pk.eyJ1IjoicGFybmRlZWRsaXQiLCJhIjoiY2o1MjBtYTRuMDhpaTMzbXhpdjd3YzhjdCJ9.sCoubaHF9-nhGTA-sgz0sA'
4141
var gl = L.mapboxGL({
4242
accessToken: token,
43-
style: `${protocol}://${ip}:${port}/igs/rest/mrms/vtiles/styles/浅色样式.json`
43+
style: `${protocol}://${ip}:${port}/igs/rest/mrms/vtiles/styles/浅色-墨卡托.json`
4444
}).addTo(map);
4545
}
4646
</script>

website/public/static/demo/leaflet/example/client-view/vectortile/mapgisstyle.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
var token = 'pk.eyJ1IjoicGFybmRlZWRsaXQiLCJhIjoiY2o1MjBtYTRuMDhpaTMzbXhpdjd3YzhjdCJ9.sCoubaHF9-nhGTA-sgz0sA'
4141
var gl = L.mapboxGL({
4242
accessToken: token,
43-
style: `${protocol}://${ip}:${port}/igs/rest/mrms/vtiles/styles/街道样式.json`
43+
style: `${protocol}://${ip}:${port}/igs/rest/mrms/vtiles/styles/街道-墨卡托.json`
4444
}).addTo(map);
4545
}
4646
</script>

website/public/static/libs/include-leaflet-local.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
if (inArray(includes, 'vectortile')) {
7575
// inputScript(httpUrl + "/cdn/leaflet-plugins/Leaflet-VectorGrid/dist/Leaflet.VectorGrid.min.js");
7676
inputCSS(httpUrl + "/cdn/mapboxgl/mapbox-gl.css");
77-
inputScript(httpUrl + "/cdn/mapboxgl/mapbox-gl-dev.js");
77+
inputScript(httpUrl + "/cdn/mapboxgl/mapbox-gl.js");
7878
inputScript(httpUrl + "/cdn/leaflet-plugins/mapbox-gl-leaflet/leaflet-mapbox-gl.js");
7979
}
8080
if (inArray(includes, 'mvt')) {

0 commit comments

Comments
 (0)