@vtx/map 1.1.22 → 1.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/VtxMap/BMap/Map.js
CHANGED
|
@@ -1963,16 +1963,25 @@ var BaiduMap = /*#__PURE__*/function (_React$Component) {
|
|
|
1963
1963
|
for (var i = 0; i < ids.length; i++) {
|
|
1964
1964
|
switch ((t.GM.getGraphicParam(ids[i]) || {}).geometryType) {
|
|
1965
1965
|
case 'point':
|
|
1966
|
-
|
|
1966
|
+
if (t.GM.getGraphic(ids[i])) {
|
|
1967
|
+
allLayers.push(t.GM.getGraphic(ids[i]).getPosition());
|
|
1968
|
+
}
|
|
1969
|
+
|
|
1967
1970
|
break;
|
|
1968
1971
|
|
|
1969
1972
|
case 'polyline':
|
|
1970
1973
|
case 'polygon':
|
|
1971
|
-
|
|
1974
|
+
if (t.GM.getGraphic(ids[i])) {
|
|
1975
|
+
allLayers = [].concat(_toConsumableArray(allLayers), _toConsumableArray(t.GM.getGraphic(ids[i]).getPath()));
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1972
1978
|
break;
|
|
1973
1979
|
|
|
1974
1980
|
case 'circle':
|
|
1975
|
-
|
|
1981
|
+
if (t.GM.getGraphic(ids[i])) {
|
|
1982
|
+
allLayers.push(t.GM.getGraphic(ids[i]).getCenter());
|
|
1983
|
+
}
|
|
1984
|
+
|
|
1976
1985
|
break;
|
|
1977
1986
|
}
|
|
1978
1987
|
}
|