Skip to content

Commit 6d81d6d

Browse files
【update】替换basePath
1 parent 708f7c0 commit 6d81d6d

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

examples/mapboxgl-v2/example/DLG.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
};
174174

175175
map.on('load', function () {
176-
window.mapboxgl.supermap.WebSymbol.symbolUrl = "../libs/resources/symbols";
176+
window.mapboxgl.supermap.WebSymbol.basePath = "../libs/resources/symbols";
177177
loadSymbols()
178178
.then(function () {
179179
createBOULLayer(630200, "line-63020004");

examples/mapboxgl-v2/example/PopulationDistribution.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@
238238
};
239239

240240
map.on("load", function () {
241-
window.mapboxgl.supermap.WebSymbol.symbolUrl = "../libs/resources/symbols";
241+
window.mapboxgl.supermap.WebSymbol.basePath = "../libs/resources/symbols";
242242
createPopDensityPolygon();
243243
createProvinceLine();
244244
createProvinceCityPoint();

examples/mapboxgl-v2/example/consumptionLevel.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
};
8383

8484
map.on('load', function () {
85-
window.mapboxgl.supermap.WebSymbol.symbolUrl = "../libs/resources/symbols";
85+
window.mapboxgl.supermap.WebSymbol.basePath = "../libs/resources/symbols";
8686
map.loadSymbol("point-311", function (_err, symbol) {
8787
if (!_err) {
8888
map.addSymbol("point-311", symbol);

examples/mapboxgl-v2/example/jingjinLanduse.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
};
131131

132132
map.on('load', function () {
133-
window.mapboxgl.supermap.WebSymbol.symbolUrl = "../libs/resources/symbols";
133+
window.mapboxgl.supermap.WebSymbol.basePath = "../libs/resources/symbols";
134134
loadSymbols().then(function () {
135135
createLandUseLayer();
136136
});

examples/mapboxgl-v2/example/landUse.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
};
160160

161161
map.on('load', function () {
162-
window.mapboxgl.supermap.WebSymbol.symbolUrl = "../libs/resources/symbols";
162+
window.mapboxgl.supermap.WebSymbol.basePath = "../libs/resources/symbols";
163163
loadSymbols().then(function () {
164164
createPolygonLayer();
165165
createLineLayer();

examples/mapboxgl-v2/example/xinjiangLanduseByVector.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
};
153153

154154
map.on('load', function () {
155-
window.mapboxgl.supermap.WebSymbol.symbolUrl = "../libs/resources/symbols";
155+
window.mapboxgl.supermap.WebSymbol.basePath = "../libs/resources/symbols";
156156
loadSymbols().then(function () {
157157
createLandUseLayer();
158158
createWaterLayer();

examples/mapboxgl-v2/example/yangtzeRiverDelta.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@
120120
}
121121
});
122122
map.addSymbol("line-custom-63020102", newSymbol);
123-
});
124-
map.addLayer({
123+
map.addLayer({
125124
"id": "line",
126125
"source": "sanjiaozhou",
127126
"type": "line",
@@ -143,6 +142,7 @@
143142
},
144143
"symbol": "line-custom-63020102"
145144
});
145+
});
146146
};
147147

148148
// 省会城市名称
@@ -239,7 +239,7 @@
239239
};
240240

241241
map.on('load', function () {
242-
window.mapboxgl.supermap.WebSymbol.symbolUrl = "../libs/resources/symbols";
242+
window.mapboxgl.supermap.WebSymbol.basePath = "../libs/resources/symbols";
243243
loadSymbols().then(function () {
244244
createPolygonLayer("Frame", "polygon-955463");
245245
createPolygonLayer("Province_R", "polygon-955464");

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy