Skip to content

Commit 0b2f680

Browse files
committed
【SDK】【service】【优化二三维联动逻辑】
1 parent a22f403 commit 0b2f680

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/service/PlotBase/LinkTool.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ class LinkTool {
4848
id = _container._container.id;
4949
} else {
5050
type = "mapbox";
51-
id = _container.mapContainer.parentElement.id;
51+
id = _container.mapContainer.parentElement && _container.mapContainer.parentElement.id
52+
|| _container._containerId;
5253
}
5354
if (this._mapContainer._container.id !== id) {
5455
switch (type) {

0 commit comments

Comments
 (0)