Skip to content

Commit ffe9def

Browse files
author
潘卓然-中地数码台式机
committed
增加mapboxgl的矢量瓦片2000坐标的脚本支持
1 parent 3e3494e commit ffe9def

3 files changed

Lines changed: 53 additions & 1 deletion

File tree

libs/zondyclient/cdn/mapboxgl/mapbox-gl-4326.js

Lines changed: 40 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/zondyclient/include-mapboxgl-local.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,12 @@
128128
if (inArray(includes, 'domtoimage')) {
129129
inputScript(httpUrl + "/cdn/dom-to-image/dom-to-image.js");
130130
}
131+
if (inArray(includes, 'webgl')) {
132+
inputScript(httpUrl + "/cdn/webgl/cuon-matrix.js");
133+
inputScript(httpUrl + "/cdn/webgl/cuon-utils.js");
134+
inputScript(httpUrl + "/cdn/webgl/webgl-debug.js");
135+
inputScript(httpUrl + "/cdn/webgl/webgl-utils.js");
136+
}
131137
if (!inArray(excludes, 'plugin')) {
132138
inputCSS(httpUrl + "/cdn/zondyclient/webclient-mapboxgl-plugins.css");
133139
inputScript(httpUrl + "/cdn/zondyclient/webclient-mapboxgl-plugins.min.js");//这里是三方如igserver-x,datastore的api

libs/zondyclient/include-mapboxgl.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,15 @@
179179
if (inArray(includes, 'domtoimage')) {
180180
inputScript(httpUrl + "/cdn/dom-to-image/dom-to-image.js");
181181
}
182+
if (inArray(includes, 'webgl')) {
183+
inputScript(httpUrl + "/cdn/webgl/cuon-matrix.js");
184+
inputScript(httpUrl + "/cdn/webgl/cuon-utils.js");
185+
inputScript(httpUrl + "/cdn/webgl/webgl-debug.js");
186+
inputScript(httpUrl + "/cdn/webgl/webgl-utils.js");
187+
}
182188
if (!inArray(excludes, 'plugin')) {
183189
inputCSS(httpUrl + "/cdn/zondyclient/webclient-mapboxgl-plugins.css");
184-
inputScript(httpUrl + "/cdn/zondyclient/webclient-mapboxgl-plugins.js");//这里是三方如igserver-x,datastore的api
190+
inputScript(httpUrl + "/cdn/zondyclient/webclient-mapboxgl-plugins.min.js");//这里是三方如igserver-x,datastore的api
185191
}
186192

187193
}

0 commit comments

Comments
 (0)