mapping-component-package-jp 0.0.18 → 0.0.19
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 +24 -25
package/package.json
CHANGED
|
@@ -512,8 +512,8 @@ export class MapOverlayManager {
|
|
|
512
512
|
|
|
513
513
|
function fmarkers_clear() {
|
|
514
514
|
fmarkers.forEach(function (fm) {
|
|
515
|
-
fm.setMap(null);
|
|
516
|
-
fm.map = null;
|
|
515
|
+
fm.setMap(null);
|
|
516
|
+
//fm.map = null;
|
|
517
517
|
fm = null;
|
|
518
518
|
});
|
|
519
519
|
fmarkers = [];
|
|
@@ -521,8 +521,8 @@ export class MapOverlayManager {
|
|
|
521
521
|
|
|
522
522
|
_this.fmarkers_clear = function() {
|
|
523
523
|
fmarkers.forEach(function (fm) {
|
|
524
|
-
fm.setMap(null);
|
|
525
|
-
fm.map = null;
|
|
524
|
+
fm.setMap(null);
|
|
525
|
+
//fm.map = null;
|
|
526
526
|
fm = null;
|
|
527
527
|
});
|
|
528
528
|
fmarkers = [];
|
|
@@ -2385,9 +2385,9 @@ export class MapOverlayManager {
|
|
|
2385
2385
|
|
|
2386
2386
|
_this.NDVI_AddOverlay_DEA = function (locationJson, ndviTileURL, validGMTiles, eosLocationCropperRefId, eosViewId, spinnerURL, spinnerLat, spinnerLon, paletteId, colorMapTypeIdValue, isFullView, onComplete) {
|
|
2387
2387
|
|
|
2388
|
-
console.log('_this.NDVI_AddOverlay_DEA');
|
|
2388
|
+
//console.log('_this.NDVI_AddOverlay_DEA');
|
|
2389
2389
|
//console.log(locationJson);
|
|
2390
|
-
console.log('zoom at entry: '+map.getZoom());
|
|
2390
|
+
//console.log('zoom at entry: '+map.getZoom());
|
|
2391
2391
|
|
|
2392
2392
|
var locationParsed = locationJson;
|
|
2393
2393
|
var location = locationParsed[0];
|
|
@@ -2421,7 +2421,7 @@ export class MapOverlayManager {
|
|
|
2421
2421
|
|
|
2422
2422
|
var vgmTiles = vgmTilesIn;
|
|
2423
2423
|
|
|
2424
|
-
console.log(vgmTiles);
|
|
2424
|
+
//console.log(vgmTiles);
|
|
2425
2425
|
|
|
2426
2426
|
var spinnerSet = false;
|
|
2427
2427
|
|
|
@@ -2433,7 +2433,7 @@ export class MapOverlayManager {
|
|
|
2433
2433
|
spinnerImg.style.transform = 'translate(0, 50%)';
|
|
2434
2434
|
const position = new google.maps.LatLng(centerLat, centerLng);
|
|
2435
2435
|
|
|
2436
|
-
console.log(spinnerImg);
|
|
2436
|
+
//console.log(spinnerImg);
|
|
2437
2437
|
|
|
2438
2438
|
var spinnerMarker = new google.maps.marker.AdvancedMarkerElement({
|
|
2439
2439
|
map: map,
|
|
@@ -2449,7 +2449,7 @@ export class MapOverlayManager {
|
|
|
2449
2449
|
|
|
2450
2450
|
if (map.getZoom() > 17) {
|
|
2451
2451
|
|
|
2452
|
-
console.log('zoom > 17');
|
|
2452
|
+
//console.log('zoom > 17');
|
|
2453
2453
|
|
|
2454
2454
|
var zoomOnAddOverlayChangedListener = google.maps.event.addListenerOnce(map, 'zoom_changed', function () {
|
|
2455
2455
|
tilesToLoad = [];
|
|
@@ -2458,7 +2458,7 @@ export class MapOverlayManager {
|
|
|
2458
2458
|
getTileUrl: function (coord, zoom) {
|
|
2459
2459
|
if(vgmTiles.indexOf(zoom+'|'+coord.x+'|'+coord.y) > -1) {
|
|
2460
2460
|
const booleanFullView = fullView ? 'true' : 'false';
|
|
2461
|
-
console.log([ndviTileURL.replace(/{l}/,eosLocationCropperRefId).replace(/{v}/,eosViewId).replace(/{p}/,paletteId).replace(/{f}/,booleanFullView).replace(/{z}/,zoom).replace(/{x}/,coord.x).replace(/{y}/,coord.y)].join(''));
|
|
2461
|
+
//console.log([ndviTileURL.replace(/{l}/,eosLocationCropperRefId).replace(/{v}/,eosViewId).replace(/{p}/,paletteId).replace(/{f}/,booleanFullView).replace(/{z}/,zoom).replace(/{x}/,coord.x).replace(/{y}/,coord.y)].join(''));
|
|
2462
2462
|
tilesToLoad.push({eosLocationCropperRefId: eosLocationCropperRefId, eosViewId: eosViewId, z: zoom, x: coord.x, y: coord.y});
|
|
2463
2463
|
return [ndviTileURL.replace(/{l}/,eosLocationCropperRefId).replace(/{v}/,eosViewId).replace(/{p}/,paletteId).replace(/{f}/,booleanFullView).replace(/{z}/,zoom).replace(/{x}/,coord.x).replace(/{y}/,coord.y)].join('');
|
|
2464
2464
|
}
|
|
@@ -2489,7 +2489,7 @@ export class MapOverlayManager {
|
|
|
2489
2489
|
|
|
2490
2490
|
if(tilesToLoad.length > 0) {
|
|
2491
2491
|
const currentZoom = map.getZoom();
|
|
2492
|
-
console.log('currentZoom: '+currentZoom);
|
|
2492
|
+
//console.log('currentZoom: '+currentZoom);
|
|
2493
2493
|
|
|
2494
2494
|
let uniqueTilesToLoad = [];
|
|
2495
2495
|
tilesToLoad.forEach(function(ttl) {
|
|
@@ -2505,9 +2505,9 @@ export class MapOverlayManager {
|
|
|
2505
2505
|
}
|
|
2506
2506
|
});
|
|
2507
2507
|
|
|
2508
|
-
console.log('tilesToLoad.length: '+tilesToLoad.length);
|
|
2509
|
-
console.log('uniqueTilesToLoad.length: '+uniqueTilesToLoad.length);
|
|
2510
|
-
console.log('zoomTileCount: '+zoomTileCount);
|
|
2508
|
+
//console.log('tilesToLoad.length: '+tilesToLoad.length);
|
|
2509
|
+
//console.log('uniqueTilesToLoad.length: '+uniqueTilesToLoad.length);
|
|
2510
|
+
//console.log('zoomTileCount: '+zoomTileCount);
|
|
2511
2511
|
|
|
2512
2512
|
if(uniqueTilesToLoad.length == zoomTileCount) {
|
|
2513
2513
|
eventHandlers["OverlayTilesLoaded"]({
|
|
@@ -2545,8 +2545,7 @@ export class MapOverlayManager {
|
|
|
2545
2545
|
|
|
2546
2546
|
} else if (map.getZoom() < 13) {
|
|
2547
2547
|
|
|
2548
|
-
console.log('zoom < 13');
|
|
2549
|
-
|
|
2548
|
+
//console.log('zoom < 13');
|
|
2550
2549
|
|
|
2551
2550
|
var zoomOnAddOverlayChangedListener = google.maps.event.addListenerOnce(map, 'zoom_changed', function () {
|
|
2552
2551
|
|
|
@@ -2556,7 +2555,7 @@ export class MapOverlayManager {
|
|
|
2556
2555
|
getTileUrl: function (coord, zoom) {
|
|
2557
2556
|
if(vgmTiles.indexOf(zoom+'|'+coord.x+'|'+coord.y) > -1) {
|
|
2558
2557
|
const booleanFullView = fullView ? 'true' : 'false';
|
|
2559
|
-
console.log([ndviTileURL.replace(/{l}/,eosLocationCropperRefId).replace(/{v}/,eosViewId).replace(/{p}/,paletteId).replace(/{f}/,booleanFullView).replace(/{z}/,zoom).replace(/{x}/,coord.x).replace(/{y}/,coord.y)].join(''));
|
|
2558
|
+
//console.log([ndviTileURL.replace(/{l}/,eosLocationCropperRefId).replace(/{v}/,eosViewId).replace(/{p}/,paletteId).replace(/{f}/,booleanFullView).replace(/{z}/,zoom).replace(/{x}/,coord.x).replace(/{y}/,coord.y)].join(''));
|
|
2560
2559
|
tilesToLoad.push({eosLocationCropperRefId: eosLocationCropperRefId, eosViewId: eosViewId, z: zoom, x: coord.x, y: coord.y});
|
|
2561
2560
|
return [ndviTileURL.replace(/{l}/,eosLocationCropperRefId).replace(/{v}/,eosViewId).replace(/{p}/,paletteId).replace(/{f}/,booleanFullView).replace(/{z}/,zoom).replace(/{x}/,coord.x).replace(/{y}/,coord.y)].join('');
|
|
2562
2561
|
}
|
|
@@ -2586,7 +2585,7 @@ export class MapOverlayManager {
|
|
|
2586
2585
|
|
|
2587
2586
|
if(tilesToLoad.length > 0) {
|
|
2588
2587
|
const currentZoom = map.getZoom();
|
|
2589
|
-
console.log('currentZoom: '+currentZoom);
|
|
2588
|
+
//console.log('currentZoom: '+currentZoom);
|
|
2590
2589
|
|
|
2591
2590
|
let uniqueTilesToLoad = [];
|
|
2592
2591
|
tilesToLoad.forEach(function(ttl) {
|
|
@@ -2603,9 +2602,9 @@ export class MapOverlayManager {
|
|
|
2603
2602
|
}
|
|
2604
2603
|
})
|
|
2605
2604
|
|
|
2606
|
-
console.log('tilesToLoad.length: '+tilesToLoad.length);
|
|
2607
|
-
console.log('uniqueTilesToLoad.length: '+uniqueTilesToLoad.length);
|
|
2608
|
-
console.log('zoomTileCount: '+zoomTileCount);
|
|
2605
|
+
//console.log('tilesToLoad.length: '+tilesToLoad.length);
|
|
2606
|
+
//console.log('uniqueTilesToLoad.length: '+uniqueTilesToLoad.length);
|
|
2607
|
+
//console.log('zoomTileCount: '+zoomTileCount);
|
|
2609
2608
|
|
|
2610
2609
|
|
|
2611
2610
|
if(uniqueTilesToLoad.length == zoomTileCount) {
|
|
@@ -2652,7 +2651,7 @@ export class MapOverlayManager {
|
|
|
2652
2651
|
getTileUrl: function (coord, zoom) {
|
|
2653
2652
|
if(vgmTiles.indexOf(zoom+'|'+coord.x+'|'+coord.y) > -1) {
|
|
2654
2653
|
const booleanFullView = fullView ? 'true' : 'false';
|
|
2655
|
-
console.log([ndviTileURL.replace(/{l}/,eosLocationCropperRefId).replace(/{v}/,eosViewId).replace(/{p}/,paletteId).replace(/{f}/,booleanFullView).replace(/{z}/,zoom).replace(/{x}/,coord.x).replace(/{y}/,coord.y)].join(''));
|
|
2654
|
+
//console.log([ndviTileURL.replace(/{l}/,eosLocationCropperRefId).replace(/{v}/,eosViewId).replace(/{p}/,paletteId).replace(/{f}/,booleanFullView).replace(/{z}/,zoom).replace(/{x}/,coord.x).replace(/{y}/,coord.y)].join(''));
|
|
2656
2655
|
tilesToLoad.push({eosLocationCropperRefId: eosLocationCropperRefId, eosViewId: eosViewId, z: zoom, x: coord.x, y: coord.y});
|
|
2657
2656
|
return [ndviTileURL.replace(/{l}/,eosLocationCropperRefId).replace(/{v}/,eosViewId).replace(/{p}/,paletteId).replace(/{f}/,booleanFullView).replace(/{z}/,zoom).replace(/{x}/,coord.x).replace(/{y}/,coord.y)].join('');
|
|
2658
2657
|
}
|
|
@@ -2699,9 +2698,9 @@ export class MapOverlayManager {
|
|
|
2699
2698
|
}
|
|
2700
2699
|
})
|
|
2701
2700
|
|
|
2702
|
-
console.log('tilesToLoad.length: '+tilesToLoad.length);
|
|
2703
|
-
console.log('uniqueTilesToLoad.length: '+uniqueTilesToLoad.length);
|
|
2704
|
-
console.log('zoomTileCount: '+zoomTileCount);
|
|
2701
|
+
//console.log('tilesToLoad.length: '+tilesToLoad.length);
|
|
2702
|
+
//console.log('uniqueTilesToLoad.length: '+uniqueTilesToLoad.length);
|
|
2703
|
+
//console.log('zoomTileCount: '+zoomTileCount);
|
|
2705
2704
|
|
|
2706
2705
|
if(uniqueTilesToLoad.length == zoomTileCount) {
|
|
2707
2706
|
eventHandlers["OverlayTilesLoaded"]({
|