mapping-component-package-jp 0.2.17 → 0.2.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mapping-component-package-jp",
3
- "version": "0.2.17",
3
+ "version": "0.2.18",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -59,7 +59,7 @@ export class MapOverlayManager {
59
59
  CircleSegment_Edit(ShapeId: string | number, isMobile: boolean): void;
60
60
 
61
61
  // Field Management
62
- DrawField_DrawLocation(locationsJson: string, selectedFarmIdentifier: string, locationId: any, shapeConfig: any): void;
62
+ DrawField_DrawLocation(locationsJson: string, selectedFarmIdentifier: string, locationId: any, shapeConfig: any, shouldBindEvents: boolean): void;
63
63
  UploadedFields_DrawLocations(locationsJson: string, offsetX: number, offsetY: number): void;
64
64
  UploadedField_GetId(Id: string | number): any;
65
65
 
@@ -820,7 +820,7 @@ export class MapOverlayManager {
820
820
  fPolies_clear();
821
821
  }
822
822
 
823
- _this.DrawField_DrawLocation = function (locationsJson, selectedFarmIdentifier, locationId, shapeConfig) {
823
+ _this.DrawField_DrawLocation = function (locationsJson, selectedFarmIdentifier, locationId, shapeConfig, shouldBindEvents) {
824
824
 
825
825
  locations = JSON.parse(locationsJson, true);
826
826
 
@@ -925,7 +925,9 @@ export class MapOverlayManager {
925
925
  });
926
926
 
927
927
  map.fitBounds(mbounds);
928
- fields_BindPolyEvents();
928
+ if (shouldBindEvents) {
929
+ fields_BindPolyEvents();
930
+ }
929
931
  //console.log(polygons);
930
932
  }
931
933