Skip to content

Commit a816b14

Browse files
author
潘卓然ParnDeedlit
committed
【站点】【Cesium】【修复客户端专题图删除异常】
1 parent 7e58351 commit a816b14

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

website/public/static/demo/mapboxgl/example/client-view/clienttheme/grade-symbol.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
/** 删除专题图*/
129129
function deleteTheme() {
130130
if (map != null && themeLayer != null) {
131-
map.removeLayer(themeLayer);
131+
themeLayer.removeFromMap();
132132
}
133133
}
134134

website/public/static/demo/mapboxgl/example/client-view/clienttheme/random.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@
198198
/** 删除专题图*/
199199
function deleteTheme() {
200200
if (map != null && themeLayer != null) {
201-
map.removeLayer(themeLayer);
201+
themeLayer.removeFromMap();
202202
}
203203
if (infoView) {
204204
map.removeControl(infoView);

website/public/static/demo/mapboxgl/example/client-view/clienttheme/range.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@
238238
/** 删除专题图*/
239239
function deleteTheme() {
240240
if (map != null && themeLayer != null) {
241-
map.removeLayer(themeLayer);
241+
themeLayer.removeFromMap();
242242
}
243243
if (infoView) {
244244
map.removeControl(infoView);

website/public/static/demo/mapboxgl/example/client-view/clienttheme/simple.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@
200200
/** 删除专题图*/
201201
function deleteTheme() {
202202
if (map != null && themeLayer != null) {
203-
map.removeLayer(themeLayer);
203+
themeLayer.removeFromMap();
204204
}
205205
if (infoView) {
206206
map.removeControl(infoView);

0 commit comments

Comments
 (0)