@deepinnet-components/pc 0.0.54 → 0.0.55

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.
@@ -258,6 +258,7 @@ var MapPolyline = function MapPolyline(props) {
258
258
  if (_arrowLayer) {
259
259
  map === null || map === void 0 || map.removeLayer(allowLayerId);
260
260
  }
261
+ setArrowLine(undefined);
261
262
  }
262
263
  } else {
263
264
  // console.log('添加layer')
@@ -319,14 +320,15 @@ var MapPolyline = function MapPolyline(props) {
319
320
  map.addLayer(outlineObj);
320
321
  map.moveLayer(outlineId, id);
321
322
  }
323
+ setOutline(outlineObj);
322
324
  } else {
323
325
  var _layer = map.getLayer(outlineId);
324
326
  if (_layer) {
325
327
  // console.log('删除outline')
326
328
  map === null || map === void 0 || map.removeLayerAndSource(outlineId);
327
329
  }
330
+ setOutline(undefined);
328
331
  }
329
- setOutline(outlineObj);
330
332
  }
331
333
  useEffect(function () {
332
334
  if (!map || !sourceData) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepinnet-components/pc",
3
- "version": "0.0.54",
3
+ "version": "0.0.55",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",