File tree Expand file tree Collapse file tree 7 files changed +14
-17
lines changed Expand file tree Collapse file tree 7 files changed +14
-17
lines changed Original file line number Diff line number Diff line change 1
1
/* Copyright© 2000 - 2021 SuperMap Software Co.Ltd. All rights reserved.
2
2
* This program are made available under the terms of the Apache License, Version 2.0
3
3
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
4
- ( function ( ) {
4
+ ( function ( ) {
5
5
var r = new RegExp ( '(^|(.*?\\/))(include-leaflet.js)(\\?|$)' ) ,
6
6
s = document . getElementsByTagName ( 'script' ) ,
7
7
targetScript ;
57
57
inputCSS ( 'https://cdn.jsdelivr.net/npm/leaflet@1.7.1/dist/leaflet.css' ) ;
58
58
inputScript ( 'https://cdn.jsdelivr.net/npm/leaflet@1.7.1/dist/leaflet.js' ) ;
59
59
}
60
+ if ( inArray ( includes , 'mapbox-gl-enhance' ) ) {
61
+ inputCSS ( 'https://iclient.supermap.io/web/libs/mapbox-gl-js-enhance/1.12.0/mapbox-gl-enhance.css' ) ;
62
+ inputScript ( 'https://iclient.supermap.io/web/libs/mapbox-gl-js-enhance/1.12.0/mapbox-gl-enhance.js' ) ;
63
+ }
60
64
if ( inArray ( includes , 'leaflet.heat' ) ) {
61
65
inputScript ( 'https://cdn.bootcdn.net/ajax/libs/leaflet.heat/0.2.0/leaflet-heat.js' ) ;
62
66
}
126
130
inputScript ( 'https://iclient.supermap.io/web/libs/bezier-easing/2.1.0/bezier-easing.js' ) ;
127
131
}
128
132
if ( inArray ( includes , 'tensorflow' ) ) {
129
- inputScript ( 'https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@3.5.0/dist/tf.min.js' ) ;
133
+ inputScript ( 'https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@3.5.0/dist/tf.min.js' ) ;
130
134
}
131
135
132
136
// iclient
167
171
if ( inArray ( includes , 'leaflet-mapbox-gl' ) ) {
168
172
inputScript ( 'https://cdn.jsdelivr.net/npm/mapbox-gl-leaflet@0.0.14/leaflet-mapbox-gl.js' ) ;
169
173
}
170
-
171
174
}
172
175
173
176
load ( ) ;
Original file line number Diff line number Diff line change 52
52
symbolSize : 30 ,
53
53
symbol : function ( ) {
54
54
if ( ( Math . round ( Math . random ( ) * 2 ) % 2 ) ) {
55
- return 'image://../classic/images /blueCar.png'
55
+ return 'image://../img /blueCar.png'
56
56
} else {
57
- return 'image://../classic/images /redCar.png'
57
+ return 'image://../img /redCar.png'
58
58
}
59
59
} ( )
60
60
} ,
Original file line number Diff line number Diff line change 16
16
17
17
< body style ="margin: 0; overflow: hidden; background: #fff; width: 100%; height: 100%; position: absolute; top: 0 ">
18
18
< div id ="map " style ="margin: 0 auto; width: 100%; height: 100% "> </ div >
19
- <!-- 叠加非3857的地图,请使用mapbox-gl-enhance -->
20
- < script
21
- type ="text/javascript "
22
- include ="mapbox-gl-enhance "
23
- src ="../../dist/mapboxgl/include-mapboxgl.js "
24
- > </ script >
25
- <!-- 需引入三方插件 mapbox-gl-leaflet https://github.com/mapbox/mapbox-gl-leaflet -->
26
- < script type ="text/javascript " include ="leaflet-mapbox-gl " src ="../../dist/leaflet/include-leaflet.js "> </ script >
19
+ <!-- 叠加非3857的地图,请使用mapbox-gl-enhance, 需引入三方插件 mapbox-gl-leaflet https://github.com/mapbox/mapbox-gl-leaflet -->
20
+ < script type ="text/javascript " include ="leaflet-mapbox-gl,mapbox-gl-enhance " src ="../../dist/leaflet/include-leaflet.js "> </ script >
27
21
28
22
< script type ="text/javascript ">
29
23
var host = window . isLocal ? window . server : 'https://iserver.supermap.io' ;
Original file line number Diff line number Diff line change 70
70
symbolSize : 30 ,
71
71
symbol : function ( ) {
72
72
if ( ( Math . round ( Math . random ( ) * 2 ) % 2 ) ) {
73
- return 'image://../classic/images /blueCar.png'
73
+ return 'image://../img /blueCar.png'
74
74
} else {
75
- return 'image://../classic/images /redCar.png'
75
+ return 'image://../img /redCar.png'
76
76
}
77
77
} ( )
78
78
} ;
Original file line number Diff line number Diff line change 74
74
symbolSize : 30 ,
75
75
symbol : function ( ) {
76
76
if ( ( Math . round ( Math . random ( ) * 2 ) % 2 ) ) {
77
- return 'image://../classic/images /blueCar.png'
77
+ return 'image://../img /blueCar.png'
78
78
} else {
79
- return 'image://../classic/images /redCar.png'
79
+ return 'image://../img /redCar.png'
80
80
}
81
81
} ( )
82
82
} ,
You can’t perform that action at this time.
0 commit comments