mapping-component-package-jp 0.0.34 → 0.0.36
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
|
@@ -2493,6 +2493,7 @@ export class MapOverlayManager {
|
|
|
2493
2493
|
var mdeListener = google.maps.event.addListener(map, 'dragend', function() {
|
|
2494
2494
|
if(map.getZoom() >= 12 && map.getZoom() <= 17) {
|
|
2495
2495
|
//console.log('SACadastral, map on dragend, zoom >= 12 and zoom <= 17');
|
|
2496
|
+
map.setOptions({ scrollwheel: true });
|
|
2496
2497
|
eventHandlers["ReloadCadastralData"]({
|
|
2497
2498
|
type: 'SUCCESS',
|
|
2498
2499
|
message: 'Reload cadastral data on dragend',
|
|
@@ -2501,6 +2502,7 @@ export class MapOverlayManager {
|
|
|
2501
2502
|
});
|
|
2502
2503
|
|
|
2503
2504
|
} else {
|
|
2505
|
+
map.setOptions({ scrollwheel: false });
|
|
2504
2506
|
//console.log('SACadastral, map on dragend, zoom < 12 or zoom > 17');
|
|
2505
2507
|
mapListeners_clear();
|
|
2506
2508
|
fPolies_clear();
|
|
@@ -2523,6 +2525,7 @@ export class MapOverlayManager {
|
|
|
2523
2525
|
var mzcListener = google.maps.event.addListener(map, 'zoom_changed', function() {
|
|
2524
2526
|
if(map.getZoom() >= 12 && map.getZoom() <= 17) {
|
|
2525
2527
|
//console.log('SACadastral, map on zoom changed, zoom >= 12 and zoom <= 17');
|
|
2528
|
+
map.setOptions({ scrollwheel: true });
|
|
2526
2529
|
eventHandlers["ReloadCadastralData"]({
|
|
2527
2530
|
type: 'SUCCESS',
|
|
2528
2531
|
message: 'Reload cadastral data on zoom changed',
|
|
@@ -2531,6 +2534,7 @@ export class MapOverlayManager {
|
|
|
2531
2534
|
});
|
|
2532
2535
|
} else {
|
|
2533
2536
|
//console.log('SACadastral, map on zoom changed, zoom < 12 or zoom > 17');
|
|
2537
|
+
map.setOptions({ scrollwheel: false });
|
|
2534
2538
|
mapListeners_clear();
|
|
2535
2539
|
fPolies_clear();
|
|
2536
2540
|
if(map.getZoom() < 12) {
|
|
@@ -2552,6 +2556,7 @@ export class MapOverlayManager {
|
|
|
2552
2556
|
var mbcListener = google.maps.event.addListenerOnce(map, 'bounds_changed', function() {
|
|
2553
2557
|
if(map.getZoom() >= 12 && map.getZoom() <= 17) {
|
|
2554
2558
|
//console.log('SACadastral, map on bounds changed, zoom >= 12 and zoom <= 17');
|
|
2559
|
+
map.setOptions({ scrollwheel: true });
|
|
2555
2560
|
eventHandlers["ReloadCadastralData"]({
|
|
2556
2561
|
type: 'SUCCESS',
|
|
2557
2562
|
message: 'Reload cadastral data on bounds changed',
|
|
@@ -2560,6 +2565,7 @@ export class MapOverlayManager {
|
|
|
2560
2565
|
});
|
|
2561
2566
|
} else {
|
|
2562
2567
|
//console.log('SACadastral, map on bounds changed, zoom < 12 or zoom > 17');
|
|
2568
|
+
map.setOptions({ scrollwheel: false });
|
|
2563
2569
|
mapListeners_clear();
|
|
2564
2570
|
fPolies_clear();
|
|
2565
2571
|
if(map.getZoom() < 12) {
|
|
@@ -2751,7 +2757,7 @@ export class MapOverlayManager {
|
|
|
2751
2757
|
var fpoly = new google.maps.Polygon({
|
|
2752
2758
|
map: map,
|
|
2753
2759
|
paths: paths,
|
|
2754
|
-
strokeWeight:
|
|
2760
|
+
strokeWeight: 2,
|
|
2755
2761
|
strokeColor: '#000000',
|
|
2756
2762
|
strokeOpacity: 1,
|
|
2757
2763
|
fillColor: '#000000',
|
|
@@ -2781,7 +2787,7 @@ export class MapOverlayManager {
|
|
|
2781
2787
|
} else if(poly.type == 'fp') {
|
|
2782
2788
|
poly.setOptions({strokeColor: '#f1a81e', strokeWeight: 3, zIndex: 10012});
|
|
2783
2789
|
} else if(poly.type == 'er') {
|
|
2784
|
-
poly.setOptions({strokeColor: '#f1a81e', strokeWeight:
|
|
2790
|
+
poly.setOptions({strokeColor: '#f1a81e', strokeWeight: 2, zIndex: 10013});
|
|
2785
2791
|
}
|
|
2786
2792
|
|
|
2787
2793
|
deleteTooltip();
|
|
@@ -2794,7 +2800,7 @@ export class MapOverlayManager {
|
|
|
2794
2800
|
} else if(poly.type == 'fp') {
|
|
2795
2801
|
poly.setOptions({strokeColor: '#000000', strokeWeight: 3, zIndex: 10002});
|
|
2796
2802
|
} else if(poly.type == 'er') {
|
|
2797
|
-
poly.setOptions({strokeColor: '#000000', strokeWeight:
|
|
2803
|
+
poly.setOptions({strokeColor: '#000000', strokeWeight: 2, zIndex: 10003});
|
|
2798
2804
|
}
|
|
2799
2805
|
deleteTooltip();
|
|
2800
2806
|
}));
|