mapping-component-package-jp 0.0.6 → 0.0.8

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.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -18,7 +18,7 @@ export class MapOverlayManager {
18
18
 
19
19
  // Rendering Methods
20
20
  RenderFields(locations: any[], properties: any, editMode?: boolean): void;
21
- RenderRegionFarms(locationsJson: any, icon: any): void;
21
+ RenderRegionFarms(locationsJson: any, icon: any, fitBounds: boolean): void;
22
22
  RenderRegions(locations: any[], properties: any): void;
23
23
  RenderBackgroundFields(locations: any[], properties: any): void;
24
24
 
@@ -284,8 +284,10 @@ export class MapOverlayManager {
284
284
  fmarkers.push(fmarker);
285
285
  });
286
286
 
287
- if (markerType === 'farm' && fitBounds) {
288
- map.fitBounds(mapBounds);
287
+ if (markerType === 'farm') {
288
+ if(fitBounds) {
289
+ map.fitBounds(mapBounds);
290
+ }
289
291
  farms_BindMarkerEvents();
290
292
  }
291
293
  }