mapping-component-package-jp 0.0.27 → 0.0.29
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
|
@@ -2458,11 +2458,15 @@ export class MapOverlayManager {
|
|
|
2458
2458
|
|
|
2459
2459
|
fpolies.forEach(function (poly) {
|
|
2460
2460
|
polygonListeners.push(google.maps.event.addListener(poly, 'mouseover', function (event) {
|
|
2461
|
+
poly.setOptions({strokeColor: '#f1a81e', zIndex: 10010});
|
|
2461
2462
|
deleteTooltip();
|
|
2462
2463
|
injectTooltip(event, poly.content);
|
|
2463
2464
|
}));
|
|
2464
2465
|
polygonListeners.push(google.maps.event.addListener(poly, 'mousemove', moveTooltip));
|
|
2465
|
-
polygonListeners.push(google.maps.event.addListener(poly, 'mouseout',
|
|
2466
|
+
polygonListeners.push(google.maps.event.addListener(poly, 'mouseout', function(event) {
|
|
2467
|
+
poly.setOptions({strokeColor: '#000000', zIndex: 10000});
|
|
2468
|
+
deleteTooltip();
|
|
2469
|
+
}));
|
|
2466
2470
|
if(!isDashboard) {
|
|
2467
2471
|
polygonListeners.push(google.maps.event.addListener(poly, 'click', function (event) {
|
|
2468
2472
|
deleteTooltip();
|
|
@@ -2484,9 +2488,11 @@ export class MapOverlayManager {
|
|
|
2484
2488
|
fmarkers_clear();
|
|
2485
2489
|
fPolies_clear();
|
|
2486
2490
|
|
|
2491
|
+
console.log('SACadastral_DrawSACadastral before adding map listeners');
|
|
2492
|
+
|
|
2487
2493
|
var mdeListener = google.maps.event.addListener(map, 'dragend', function() {
|
|
2488
2494
|
if(map.getZoom() >= 12 && map.getZoom() <= 17) {
|
|
2489
|
-
console.log('SACadastral, map on dragend');
|
|
2495
|
+
console.log('SACadastral, map on dragend, zoom >= 12 and zoom <= 17');
|
|
2490
2496
|
eventHandlers["ReloadCadastralData"]({
|
|
2491
2497
|
type: 'SUCCESS',
|
|
2492
2498
|
message: 'Reload cadastral data on dragend',
|
|
@@ -2495,6 +2501,7 @@ export class MapOverlayManager {
|
|
|
2495
2501
|
});
|
|
2496
2502
|
|
|
2497
2503
|
} else {
|
|
2504
|
+
console.log('SACadastral, map on dragend, zoom < 12 or zoom > 17');
|
|
2498
2505
|
mapListeners_clear();
|
|
2499
2506
|
fPolies_clear();
|
|
2500
2507
|
}
|
|
@@ -2503,7 +2510,7 @@ export class MapOverlayManager {
|
|
|
2503
2510
|
|
|
2504
2511
|
var mzcListener = google.maps.event.addListener(map, 'zoom_changed', function() {
|
|
2505
2512
|
if(map.getZoom() >= 12 && map.getZoom() <= 17) {
|
|
2506
|
-
console.log('SACadastral, map on zoom changed');
|
|
2513
|
+
console.log('SACadastral, map on zoom changed, zoom >= 12 and zoom <= 17');
|
|
2507
2514
|
eventHandlers["ReloadCadastralData"]({
|
|
2508
2515
|
type: 'SUCCESS',
|
|
2509
2516
|
message: 'Reload cadastral data on zoom changed',
|
|
@@ -2511,6 +2518,7 @@ export class MapOverlayManager {
|
|
|
2511
2518
|
data: null
|
|
2512
2519
|
});
|
|
2513
2520
|
} else {
|
|
2521
|
+
console.log('SACadastral, map on zoom changed, zoom < 12 or zoom > 17');
|
|
2514
2522
|
mapListeners_clear();
|
|
2515
2523
|
fPolies_clear();
|
|
2516
2524
|
}
|