8000 [update]leaflet三方库升级 review by xiongjj · SuperMap/iClient-JavaScript@cda5d57 · GitHub
[go: up one dir, main page]

Skip to content

Commit cda5d57

Browse files
committed
[update]leaflet三方库升级 review by xiongjj
1 parent 5670035 commit cda5d57

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

dist/leaflet/include-leaflet.js

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,18 @@
6565
inputScript('https://cdn.bootcdn.net/ajax/libs/leaflet.heat/0.2.0/leaflet-heat.js');
6666
}
6767
if (inArray(includes, 'leaflet.markercluster')) {
68-
inputCSS('https://cdn.bootcdn.net/ajax/libs/leaflet.markercluster/1.4.1/MarkerCluster.Default.css');
69-
inputCSS('https://cdn.bootcdn.net/ajax/libs/leaflet.markercluster/1.4.1/MarkerCluster.css');
70-
inputScript('https://cdn.bootcdn.net/ajax/libs/leaflet.markercluster/1.4.1/leaflet.markercluster.js');
68+
inputCSS('https://cdn.jsdelivr.net/npm/leaflet.markercluster@1.5.1/dist/MarkerCluster.Default.css');
69+
inputCSS('https://cdn.jsdelivr.net/npm/leaflet.markercluster@1.5.1/dist/MarkerCluster.css');
70+
inputScript('https://cdn.jsdelivr.net/npm/leaflet.markercluster@1.5.1/dist/leaflet.markercluster.js');
7171
}
7272
if (inArray(includes, 'leaflet.draw')) {
7373
inputCSS('https://cdn.bootcdn.net/ajax/libs/leaflet.draw/1.0.4/leaflet.draw.css');
7474
inputScript('https://cdn.bootcdn.net/ajax/libs/leaflet.draw/1.0.4/leaflet.draw.js');
7575
}
7676
if (inArray(includes, 'leaflet-geoman')) {
77-
inputCSS('https://cdn.jsdelivr.net/npm/@geoman-io/leaflet-geoman-free@2.7.0/dist/leaflet-geoman.css');
78-
inputScript('https://cdn.jsdelivr.net/npm/@geoman-io/leaflet-geoman-free@2.7.0/dist/leaflet-geoman.min.js');
77+
inputCSS('https://cdn.jsdelivr.net/npm/@skyraptor/leaflet-geoman-free@2.11.3/dist/leaflet-geoman.css');
78+
inputScript('https://cdn.jsdelivr.net/npm/@skyraptor/leaflet-geoman-free@2.11.3/dist/leaflet-geoman.min.js');
79+
7980
}
8081
if (inArray(includes, 'leaflet.miniMap')) {
8182
inputCSS('https://cdn.bootcdn.net/ajax/libs/leaflet-minimap/3.6.1/Control.MiniMap.min.css');
@@ -98,12 +99,10 @@
9899
}
99100
// 本地
100101
if (inArray(includes, 'leaflet.sidebyside')) {
101-
inputScript(
102-
'https://iclient.supermap.io/web/libs/leaflet/plugins/leaflet-side-by-side/leaflet-side-by-side.min.js'
103-
);
102+
inputScript('https://iclient.supermap.io/web/libs/leaflet/plugins/leaflet-side-by-side/leaflet-side-by-side.min.js');
104103
}
105104
if (inArray(includes, 'd3')) {
106-
inputScript('https://cdn.bootcdn.net/ajax/libs/d3/6.1.1/d3.min.js');
105+
inputScript('https://cdn.jsdelivr.net/npm/d3@7.0.3/dist/d3.min.js');
107106
}
108107
if (inArray(includes, 'd3-hexbin')) {
109108
inputScript('https://d3js.org/d3-hexbin.v0.2.min.js');
@@ -123,10 +122,8 @@
123122
}
124123
if (inArray(includes, 'pixi')) {
125124
inputScript('https://cdn.bootcdn.net/ajax/libs/pixi.js/4.8.7/pixi.js');
126-
inputScript('https://cdn.jsdelivr.net/npm/leaflet-pixi-overlay@1.8.1/L.PixiOverlay.min.js');
127-
inputScript(
128-
'https://iclient.supermap.io/web/libs/leaflet/plugins/Leaflet.PixiOverlay/1.8.1/MarkerContainer.js'
129-
);
125+
inputScript('https://cdn.jsdelivr.net/npm/leaflet-pixi-overlay@1.8.2/L.PixiOverlay.min.js');
126+
inputScript('https://iclient.supermap.io/web/libs/leaflet/plugins/Leaflet.PixiOverlay/MarkerContainer.js');
130127
inputScript('https://iclient.supermap.io/web/libs/bezier-easing/2.1.0/bezier-easing.js');
131128
}
132129
if (inArray(includes, 'tensorflow')) {
@@ -169,7 +166,7 @@
169166
inputScript('../../dist/leaflet/iclient-leaflet-vue.min.js');
170167
}
171168
if (inArray(includes, 'leaflet-mapbox-gl')) {
172-
inputScript('https://cdn.jsdelivr.net/npm/mapbox-gl-leaflet@0.0.14/leaflet-mapbox-gl.js');
169+
inputScript('https://cdn.jsdelivr.net/npm/mapbox-gl-leaflet@0.0.15/leaflet-mapbox-gl.min.js');
173170
}
174171
}
175172

@@ -178,4 +175,4 @@
178175
window.server = document.location.toString().match(/file:\/\//)
179176
? 'http://localhost:8090'
180177
: document.location.protocol + '//' + document.location.host;
181-
})();
178+
})();

0 commit comments

Comments
 (0)
0