From 43684ec18afa54b634d94aaffc3bbfaa6b75400e Mon Sep 17 00:00:00 2001 From: qiwei Date: Wed, 29 May 2024 11:40:31 +0800 Subject: [PATCH] fix example review by luox --- dist/mapboxgl/include-mapboxgl.js | 2 +- dist/maplibregl/include-maplibregl.js | 2 +- examples/leaflet/06_trafficTransferAnalystService.html | 4 ++++ examples/leaflet/addressMatchService.html | 5 +++++ examples/mapboxgl/drawAndEditFeatures.html | 2 +- examples/maplibregl/drawAndEditFeatures.html | 2 +- 6 files changed, 13 insertions(+), 4 deletions(-) diff --git a/dist/mapboxgl/include-mapboxgl.js b/dist/mapboxgl/include-mapboxgl.js index e450885be..082cf43e0 100644 --- a/dist/mapboxgl/include-mapboxgl.js +++ b/dist/mapboxgl/include-mapboxgl.js @@ -211,7 +211,7 @@ inputScript(libsurl + '/vue-cesium/2.1.4/index.umd.min.js'); } if (inArray(includes, 'snap')) { - inputScript(libsurl + '/mapbox-gl-draw-snap-mode/0.2.1/mapbox-gl-draw-snap-mode.js'); + inputScript(libsurl + '/mapbox-gl-draw-snap-mode/0.2.1/mapbox-gl-draw-snap-mode.min.js'); } if (inArray(includes, 'ugcwasm')) { inputScript(libsurl + '/ugcwasm/1.0.0/UGCWasmAll.js'); diff --git a/dist/maplibregl/include-maplibregl.js b/dist/maplibregl/include-maplibregl.js index b2f4acf1c..c7f68bcae 100644 --- a/dist/maplibregl/include-maplibregl.js +++ b/dist/maplibregl/include-maplibregl.js @@ -178,7 +178,7 @@ inputScript(libsurl + '/turf/6.5.0/turf.min.js'); } if (inArray(includes, 'snap')) { - inputScript(libsurl + '/mapbox-gl-draw-snap-mode/0.2.1/mapbox-gl-draw-snap-mode.js'); + inputScript(libsurl + '/mapbox-gl-draw-snap-mode/0.2.1/mapbox-gl-draw-snap-mode.min.js'); } if (inArray(includes, 'ugcwasm')) { inputScript(libsurl + '/ugcwasm/1.0.0/UGCWasmAll.js'); diff --git a/examples/leaflet/06_trafficTransferAnalystService.html b/examples/leaflet/06_trafficTransferAnalystService.html index 8124c5208..a433d34e9 100644 --- a/examples/leaflet/06_trafficTransferAnalystService.html +++ b/examples/leaflet/06_trafficTransferAnalystService.html @@ -24,6 +24,10 @@ #trafficRes { margin: 5px; } + + .leaflet-control { + font-size: 14px; + } diff --git a/examples/leaflet/addressMatchService.html b/examples/leaflet/addressMatchService.html index 9ddc8a0fe..6be2b308b 100644 --- a/examples/leaflet/addressMatchService.html +++ b/examples/leaflet/addressMatchService.html @@ -7,6 +7,11 @@ +
diff --git a/examples/mapboxgl/drawAndEditFeatures.html b/examples/mapboxgl/drawAndEditFeatures.html index 1b7716557..40a54369a 100644 --- a/examples/mapboxgl/drawAndEditFeatures.html +++ b/examples/mapboxgl/drawAndEditFeatures.html @@ -316,7 +316,7 @@
:
var currentDataset = 'buildings_R'; var map, draw, - url = (window.isLocal ? window.server : "https://iserver.supermap.io") + "/iserver/services/map-china400/rest/maps/China_4326"; + url = (window.isLocal ? window.server : "https://iserver.supermap.io") + "/iserver/services/map-china400/rest/maps/China/zxyTileImage.png?z={z}&x={x}&y={y}"; var isUpdate = false; var dataUrl = (window.isLocal ? window.server : "https://iserver.supermap.io") + "/iserver/services/data-building/rest/data"; var dataSourceName = 'building'; diff --git a/examples/maplibregl/drawAndEditFeatures.html b/examples/maplibregl/drawAndEditFeatures.html index f477312ba..99c20ae7a 100644 --- a/examples/maplibregl/drawAndEditFeatures.html +++ b/examples/maplibregl/drawAndEditFeatures.html @@ -317,7 +317,7 @@
:
var currentDataset = 'buildings_R'; var map, draw, - url = (window.isLocal ? window.server : "https://iserver.supermap.io") + "/iserver/services/map-china400/rest/maps/China_4326"; + url = (window.isLocal ? window.server : "https://iserver.supermap.io") + "/iserver/services/map-china400/rest/maps/China/zxyTileImage.png?z={z}&x={x}&y={y}"; var isUpdate = false; var dataUrl = (window.isLocal ? window.server : "https://iserver.supermap.io") + "/iserver/services/data-building/rest/data"; var dataSourceName = 'building';