Skip to content

Commit 0a17bd1

Browse files
committed
2 parents 65ce14f + b9202aa commit 0a17bd1

File tree

18 files changed

+78
-508
lines changed

18 files changed

+78
-508
lines changed

build/deps.js

Lines changed: 52 additions & 52 deletions
Large diffs are not rendered by default.

examples/js/editor.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ function initSideBar() {
4242
var config = exampleConfig;
4343
var sideBar = $("ul#sidebar-menu");
4444
for (var key in config) {
45+
if (typeof config[key] === 'object' && config[key] !== null) {
4546
sideBar.append(createSideBarMenuItem(key, config[key], containExamples));
47+
}
4648
}
4749
$(sideBar).ready(function () {
4850
initSelect();

examples/js/example.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ function initPage() {
2121
var sideBar = $("ul#sidebar-menu");
2222
var chartList = $("#charts-list");
2323
for (var key in exConfig) {
24+
if (typeof exConfig[key] === 'object' && exConfig[key] !== null) {
2425
sideBar.append(createSideBarMenuItem(key, exConfig[key], containExamples));
2526
chartList.append(createGalleryItem(key, exConfig[key]));
27+
}
2628
}
2729
resizeCharts();
2830
initSelect();

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"build-docs-mapboxgl": "rimraf ./docs/mapboxgl && jsdoc -c ./build/jsdocs/mapboxgl/docs.json -R ./build/jsdocs/mapboxgl/index.md",
4848
"build-docs-maplibregl": "rimraf ./docs/maplibregl && jsdoc -c ./build/jsdocs/maplibregl/docs.json -R ./build/jsdocs/maplibregl/index.md",
4949
"build-docs-classic": "rimraf ./docs/classic && jsdoc -c ./build/jsdocs/classic/docs.json -R ./build/jsdocs/classic/index.md",
50-
"pre-publish": "node ./build/publish.js --leaflet && node ./build/publish.js --openlayers && node ./build/publish.js --mapboxgl && npm run pre-publish-symbol && node ./build/publish.js --maplibregl && node ./build/publish.js --classic",
50+
"pre-publish": "node ./build/publish.js --leaflet && node ./build/publish.js --openlayers && node ./build/publish.js --mapboxgl && node ./build/publish.js --maplibregl && node ./build/publish.js --classic && npm run pre-publish-symbol",
5151
"publish": "npm run pre-publish && cd ./src/common && npm publish && cd ../leaflet && npm publish && cd ../openlayers && npm publish && cd ../mapboxgl && npm publish && cd ../maplibregl && npm publish && cd ../classic && npm publish",
5252
"pre-publish-symbol": "copyfiles -u 1 ./dist/resources/** ./src/mapboxgl/ "
5353
},

src/mapboxgl/namespace.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ mapboxgl.supermap = {...SuperMap, ...mapboxgl.supermap};
7070
mapboxgl.supermap.map = mapboxgl.supermap.map || {};
7171

7272
mapboxgl.supermap.LogoControl = Logo;
73+
mapboxgl.supermap.Logo = Logo;
7374
mapboxgl.supermap.Util = Util;
7475
mapboxgl.supermap.WebMap = WebMap;
7576
mapboxgl.supermap.Graphic = Graphic;

src/mapboxgl/overlay/symbol/MapExtendSymbol.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { FetchRequest } from "@supermap/iclient-common/util/FetchRequest";
1010
* @description 扩展了 mapboxgl.Map 对图层相关的操作。
1111
* @private
1212
*/
13-
export var MapExtendSymbol = (function () {
13+
function MapExtendSymbol(){
1414
/**
1515
* 获取symbol管理
1616
* @param {*} map
@@ -257,5 +257,5 @@ export var MapExtendSymbol = (function () {
257257
}
258258
}
259259

260-
})();
261-
260+
}
261+
export default MapExtendSymbol

src/mapboxgl/overlay/symbol/WebSymbol.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* This program are made available under the terms of the Apache License, Version 2.0
33
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
44
import mapboxgl from "mapbox-gl";
5-
import './MapExtendSymbol';
5+
import MapExtendSymbol from './MapExtendSymbol';
66
/**
77
* @class WebSymbol
88
* @classdesc SuperMap iClient for MapboxGL 支持 Web 符号库,扩展了 [MapboxGL](https://docs.mapbox.com/mapbox-gl-js/api/) 的 API。
@@ -188,5 +188,6 @@ export class WebSymbol {
188188
*/
189189
init(config) {
190190
mapboxgl.Map.prototype.basePath = config?.basePath ?? this.defaultBasePath;
191+
MapExtendSymbol();
191192
}
192193
}

src/mapboxgl/overlay/threejs/ThreeLayerRenderer.js

Lines changed: 0 additions & 294 deletions
This file was deleted.

0 commit comments

Comments
 (0)