mapping-component-package-jp 0.0.30 → 0.0.32

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.30",
3
+ "version": "0.0.32",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -2504,6 +2504,12 @@ export class MapOverlayManager {
2504
2504
  console.log('SACadastral, map on dragend, zoom < 12 or zoom > 17');
2505
2505
  mapListeners_clear();
2506
2506
  fPolies_clear();
2507
+ eventHandlers["ReloadCadastralData"]({
2508
+ type: 'SUCCESS',
2509
+ message: 'Reload cadastral data on dragend, zoom outside range',
2510
+ code: 200,
2511
+ data: map.getZoom()
2512
+ });
2507
2513
  }
2508
2514
  });
2509
2515
  mapListeners.push(mdeListener);
@@ -2521,10 +2527,39 @@ export class MapOverlayManager {
2521
2527
  console.log('SACadastral, map on zoom changed, zoom < 12 or zoom > 17');
2522
2528
  mapListeners_clear();
2523
2529
  fPolies_clear();
2530
+ eventHandlers["ReloadCadastralData"]({
2531
+ type: 'SUCCESS',
2532
+ message: 'Reload cadastral data on zoom changed, zoom outside range',
2533
+ code: 200,
2534
+ data: map.getZoom()
2535
+ });
2524
2536
  }
2525
2537
  });
2526
2538
  mapListeners.push(mzcListener);
2527
2539
 
2540
+ var mbcListener = google.maps.event.addListenerOnce(map, 'bounds_changed', function() {
2541
+ if(map.getZoom() >= 12 && map.getZoom() <= 17) {
2542
+ console.log('SACadastral, map on bounds changed, zoom >= 12 and zoom <= 17');
2543
+ eventHandlers["ReloadCadastralData"]({
2544
+ type: 'SUCCESS',
2545
+ message: 'Reload cadastral data on bounds changed',
2546
+ code: 200,
2547
+ data: null
2548
+ });
2549
+ } else {
2550
+ console.log('SACadastral, map on bounds changed, zoom < 12 or zoom > 17');
2551
+ mapListeners_clear();
2552
+ fPolies_clear();
2553
+ eventHandlers["ReloadCadastralData"]({
2554
+ type: 'SUCCESS',
2555
+ message: 'Reload cadastral data on bounds changed, zoom outside range',
2556
+ code: 200,
2557
+ data: map.getZoom()
2558
+ });
2559
+ }
2560
+ });
2561
+ mapListeners.push(mbcListener);
2562
+
2528
2563
  Display_SACadastral(saCadastralJson, offsetX, offsetY, vmWidth, isDashboard, fitBounds);
2529
2564
  }
2530
2565