@uiw/react-amap-polygon
Advanced tools
Comparing version 5.0.4 to 5.0.5
@@ -33,8 +33,9 @@ "use strict"; | ||
if (instance) { | ||
if (AMap.v) { | ||
map && map.remove(instance); | ||
} else { | ||
// 暂不使用这个 API,这个不兼容 v1.4.xx,改用 map.remove API | ||
map && map.removeLayer(instance); | ||
} | ||
map && map.remove(instance); | ||
// if (AMap.v) { | ||
// map && map.remove(instance); | ||
// } else { | ||
// // 暂不使用这个 API,这个不兼容 v1.4.xx,改用 map.remove API | ||
// map && map.removeLayer(instance); | ||
// } | ||
setPolygon(undefined); | ||
@@ -41,0 +42,0 @@ } |
@@ -27,8 +27,9 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
if (instance) { | ||
if (AMap.v) { | ||
map && map.remove(instance); | ||
} else { | ||
// 暂不使用这个 API,这个不兼容 v1.4.xx,改用 map.remove API | ||
map && map.removeLayer(instance); | ||
} | ||
map && map.remove(instance); | ||
// if (AMap.v) { | ||
// map && map.remove(instance); | ||
// } else { | ||
// // 暂不使用这个 API,这个不兼容 v1.4.xx,改用 map.remove API | ||
// map && map.removeLayer(instance); | ||
// } | ||
setPolygon(undefined); | ||
@@ -35,0 +36,0 @@ } |
{ | ||
"name": "@uiw/react-amap-polygon", | ||
"version": "5.0.4", | ||
"version": "5.0.5", | ||
"description": "构造多边形对象,通过 PolygonOptions 指定多边形样式。", | ||
@@ -37,4 +37,4 @@ "homepage": "https://uiwjs.github.io/react-amap/#/polygon", | ||
"dependencies": { | ||
"@uiw/react-amap-map": "5.0.4", | ||
"@uiw/react-amap-utils": "5.0.4" | ||
"@uiw/react-amap-map": "5.0.5", | ||
"@uiw/react-amap-utils": "5.0.5" | ||
}, | ||
@@ -41,0 +41,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
18023
271
+ Added@uiw/react-amap-map@5.0.5(transitive)
+ Added@uiw/react-amap-types@5.0.5(transitive)
+ Added@uiw/react-amap-utils@5.0.5(transitive)
- Removed@uiw/react-amap-map@5.0.4(transitive)
- Removed@uiw/react-amap-types@5.0.4(transitive)
- Removed@uiw/react-amap-utils@5.0.4(transitive)
Updated@uiw/react-amap-map@5.0.5
Updated@uiw/react-amap-utils@5.0.5