mapping-component-package-jp 0.0.33 → 0.0.35
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/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/js/mapEncapsulation/mapOverlayManager.js +20 -21
package/package.json
CHANGED
|
@@ -2488,11 +2488,11 @@ export class MapOverlayManager {
|
|
|
2488
2488
|
fmarkers_clear();
|
|
2489
2489
|
fPolies_clear();
|
|
2490
2490
|
|
|
2491
|
-
console.log('SACadastral_DrawSACadastral before adding map listeners');
|
|
2491
|
+
//console.log('SACadastral_DrawSACadastral before adding map listeners');
|
|
2492
2492
|
|
|
2493
2493
|
var mdeListener = google.maps.event.addListener(map, 'dragend', function() {
|
|
2494
|
-
if(map.getZoom() >=
|
|
2495
|
-
console.log('SACadastral, map on dragend, zoom >=
|
|
2494
|
+
if(map.getZoom() >= 12 && map.getZoom() <= 17) {
|
|
2495
|
+
//console.log('SACadastral, map on dragend, zoom >= 12 and zoom <= 17');
|
|
2496
2496
|
eventHandlers["ReloadCadastralData"]({
|
|
2497
2497
|
type: 'SUCCESS',
|
|
2498
2498
|
message: 'Reload cadastral data on dragend',
|
|
@@ -2501,11 +2501,11 @@ export class MapOverlayManager {
|
|
|
2501
2501
|
});
|
|
2502
2502
|
|
|
2503
2503
|
} else {
|
|
2504
|
-
console.log('SACadastral, map on dragend, zoom <
|
|
2504
|
+
//console.log('SACadastral, map on dragend, zoom < 12 or zoom > 17');
|
|
2505
2505
|
mapListeners_clear();
|
|
2506
2506
|
fPolies_clear();
|
|
2507
|
-
if(map.getZoom() <
|
|
2508
|
-
map.setZoom(
|
|
2507
|
+
if(map.getZoom() < 12) {
|
|
2508
|
+
map.setZoom(12);
|
|
2509
2509
|
}
|
|
2510
2510
|
if(map.getZoom() > 17) {
|
|
2511
2511
|
map.setZoom(17);
|
|
@@ -2521,8 +2521,8 @@ export class MapOverlayManager {
|
|
|
2521
2521
|
mapListeners.push(mdeListener);
|
|
2522
2522
|
|
|
2523
2523
|
var mzcListener = google.maps.event.addListener(map, 'zoom_changed', function() {
|
|
2524
|
-
if(map.getZoom() >=
|
|
2525
|
-
console.log('SACadastral, map on zoom changed, zoom >=
|
|
2524
|
+
if(map.getZoom() >= 12 && map.getZoom() <= 17) {
|
|
2525
|
+
//console.log('SACadastral, map on zoom changed, zoom >= 12 and zoom <= 17');
|
|
2526
2526
|
eventHandlers["ReloadCadastralData"]({
|
|
2527
2527
|
type: 'SUCCESS',
|
|
2528
2528
|
message: 'Reload cadastral data on zoom changed',
|
|
@@ -2530,11 +2530,11 @@ export class MapOverlayManager {
|
|
|
2530
2530
|
data: null
|
|
2531
2531
|
});
|
|
2532
2532
|
} else {
|
|
2533
|
-
console.log('SACadastral, map on zoom changed, zoom <
|
|
2533
|
+
//console.log('SACadastral, map on zoom changed, zoom < 12 or zoom > 17');
|
|
2534
2534
|
mapListeners_clear();
|
|
2535
2535
|
fPolies_clear();
|
|
2536
|
-
if(map.getZoom() <
|
|
2537
|
-
map.setZoom(
|
|
2536
|
+
if(map.getZoom() < 12) {
|
|
2537
|
+
map.setZoom(12);
|
|
2538
2538
|
}
|
|
2539
2539
|
if(map.getZoom() > 17) {
|
|
2540
2540
|
map.setZoom(17);
|
|
@@ -2550,8 +2550,8 @@ export class MapOverlayManager {
|
|
|
2550
2550
|
mapListeners.push(mzcListener);
|
|
2551
2551
|
|
|
2552
2552
|
var mbcListener = google.maps.event.addListenerOnce(map, 'bounds_changed', function() {
|
|
2553
|
-
if(map.getZoom() >=
|
|
2554
|
-
console.log('SACadastral, map on bounds changed, zoom >=
|
|
2553
|
+
if(map.getZoom() >= 12 && map.getZoom() <= 17) {
|
|
2554
|
+
//console.log('SACadastral, map on bounds changed, zoom >= 12 and zoom <= 17');
|
|
2555
2555
|
eventHandlers["ReloadCadastralData"]({
|
|
2556
2556
|
type: 'SUCCESS',
|
|
2557
2557
|
message: 'Reload cadastral data on bounds changed',
|
|
@@ -2559,16 +2559,15 @@ export class MapOverlayManager {
|
|
|
2559
2559
|
data: null
|
|
2560
2560
|
});
|
|
2561
2561
|
} else {
|
|
2562
|
-
console.log('SACadastral, map on bounds changed, zoom <
|
|
2562
|
+
//console.log('SACadastral, map on bounds changed, zoom < 12 or zoom > 17');
|
|
2563
2563
|
mapListeners_clear();
|
|
2564
2564
|
fPolies_clear();
|
|
2565
|
-
if(map.getZoom() <
|
|
2566
|
-
map.setZoom(
|
|
2565
|
+
if(map.getZoom() < 12) {
|
|
2566
|
+
map.setZoom(12);
|
|
2567
2567
|
}
|
|
2568
2568
|
if(map.getZoom() > 17) {
|
|
2569
2569
|
map.setZoom(17);
|
|
2570
2570
|
}
|
|
2571
|
-
|
|
2572
2571
|
eventHandlers["ReloadCadastralData"]({
|
|
2573
2572
|
type: 'SUCCESS',
|
|
2574
2573
|
message: 'Reload cadastral data on bounds changed, zoom outside range',
|
|
@@ -2579,7 +2578,7 @@ export class MapOverlayManager {
|
|
|
2579
2578
|
});
|
|
2580
2579
|
mapListeners.push(mbcListener);
|
|
2581
2580
|
|
|
2582
|
-
if(map.getZoom() >=
|
|
2581
|
+
if(map.getZoom() >= 12 && map.getZoom() <= 17) {
|
|
2583
2582
|
Display_SACadastral(saCadastralJson, offsetX, offsetY, vmWidth, isDashboard, fitBounds);
|
|
2584
2583
|
}
|
|
2585
2584
|
}
|
|
@@ -2752,7 +2751,7 @@ export class MapOverlayManager {
|
|
|
2752
2751
|
var fpoly = new google.maps.Polygon({
|
|
2753
2752
|
map: map,
|
|
2754
2753
|
paths: paths,
|
|
2755
|
-
strokeWeight:
|
|
2754
|
+
strokeWeight: 2,
|
|
2756
2755
|
strokeColor: '#000000',
|
|
2757
2756
|
strokeOpacity: 1,
|
|
2758
2757
|
fillColor: '#000000',
|
|
@@ -2782,7 +2781,7 @@ export class MapOverlayManager {
|
|
|
2782
2781
|
} else if(poly.type == 'fp') {
|
|
2783
2782
|
poly.setOptions({strokeColor: '#f1a81e', strokeWeight: 3, zIndex: 10012});
|
|
2784
2783
|
} else if(poly.type == 'er') {
|
|
2785
|
-
poly.setOptions({strokeColor: '#f1a81e', strokeWeight:
|
|
2784
|
+
poly.setOptions({strokeColor: '#f1a81e', strokeWeight: 2, zIndex: 10013});
|
|
2786
2785
|
}
|
|
2787
2786
|
|
|
2788
2787
|
deleteTooltip();
|
|
@@ -2795,7 +2794,7 @@ export class MapOverlayManager {
|
|
|
2795
2794
|
} else if(poly.type == 'fp') {
|
|
2796
2795
|
poly.setOptions({strokeColor: '#000000', strokeWeight: 3, zIndex: 10002});
|
|
2797
2796
|
} else if(poly.type == 'er') {
|
|
2798
|
-
poly.setOptions({strokeColor: '#000000', strokeWeight:
|
|
2797
|
+
poly.setOptions({strokeColor: '#000000', strokeWeight: 2, zIndex: 10003});
|
|
2799
2798
|
}
|
|
2800
2799
|
deleteTooltip();
|
|
2801
2800
|
}));
|