@vtx/map 1.2.14 → 1.2.16

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.
@@ -1556,13 +1556,13 @@ var TMap = /*#__PURE__*/function (_React$Component) {
1556
1556
 
1557
1557
  _this7.GM.setGraphic(item.id, polygon).setGraphicParam(item.id, {
1558
1558
  attributes: _objectSpread(_objectSpread({}, item), {}, {
1559
- rings: [pts],
1559
+ rings: pts,
1560
1560
  other: item
1561
1561
  }),
1562
1562
  geometryType: 'polygon',
1563
1563
  geometry: {
1564
1564
  type: 'polygon',
1565
- rings: [pts]
1565
+ rings: pts
1566
1566
  }
1567
1567
  });
1568
1568
 
@@ -1621,13 +1621,13 @@ var TMap = /*#__PURE__*/function (_React$Component) {
1621
1621
 
1622
1622
  _this8.GM.setGraphicParam(item.id, {
1623
1623
  attributes: _objectSpread(_objectSpread({}, item), {}, {
1624
- rings: [pts],
1624
+ rings: pts,
1625
1625
  other: item
1626
1626
  }),
1627
1627
  geometryType: 'polygon',
1628
1628
  geometry: {
1629
1629
  type: 'polygon',
1630
- rings: [pts]
1630
+ rings: pts
1631
1631
  }
1632
1632
  });
1633
1633
  } else {
@@ -2300,10 +2300,10 @@ var TMap = /*#__PURE__*/function (_React$Component) {
2300
2300
  currentRectangle = ob.currentRectangle,
2301
2301
  allRectangles = ob.allRectangles;
2302
2302
  t.GM.setGraphic(drawParam.data.id, currentRectangle);
2303
- var currentLnglats = [currentBounds.getNorthEast(), currentBounds.getSouthWest(), {
2303
+ var currentLnglats = [currentBounds.getNorthEast(), {
2304
2304
  lng: currentBounds.getSouthWest().lng,
2305
2305
  lat: currentBounds.getNorthEast().lat
2306
- }, {
2306
+ }, currentBounds.getSouthWest(), {
2307
2307
  lng: currentBounds.getNorthEast().lng,
2308
2308
  lat: currentBounds.getSouthWest().lat
2309
2309
  }];