mapping-component-package-jp 0.0.17 → 0.0.18
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 +6 -16
package/package.json
CHANGED
|
@@ -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
|
-
|
|
2388
|
+
console.log('_this.NDVI_AddOverlay_DEA');
|
|
2389
2389
|
//console.log(locationJson);
|
|
2390
|
-
|
|
2390
|
+
console.log('zoom at entry: '+map.getZoom());
|
|
2391
2391
|
|
|
2392
2392
|
var locationParsed = locationJson;
|
|
2393
2393
|
var location = locationParsed[0];
|
|
@@ -2493,7 +2493,7 @@ export class MapOverlayManager {
|
|
|
2493
2493
|
|
|
2494
2494
|
let uniqueTilesToLoad = [];
|
|
2495
2495
|
tilesToLoad.forEach(function(ttl) {
|
|
2496
|
-
if(uniqueTilesToLoad.indexOf(ttl.z+'|'+ttl.x+'|'+ttl.y) == -1) {
|
|
2496
|
+
if(uniqueTilesToLoad.indexOf(ttl.z+'|'+ttl.x+'|'+ttl.y) == -1 && ttl.z == currentZoom) {
|
|
2497
2497
|
uniqueTilesToLoad.push(ttl.z+'|'+ttl.x+'|'+ttl.y);
|
|
2498
2498
|
}
|
|
2499
2499
|
});
|
|
@@ -2590,7 +2590,7 @@ export class MapOverlayManager {
|
|
|
2590
2590
|
|
|
2591
2591
|
let uniqueTilesToLoad = [];
|
|
2592
2592
|
tilesToLoad.forEach(function(ttl) {
|
|
2593
|
-
if(uniqueTilesToLoad.indexOf(ttl.z+'|'+ttl.x+'|'+ttl.y) == -1) {
|
|
2593
|
+
if(uniqueTilesToLoad.indexOf(ttl.z+'|'+ttl.x+'|'+ttl.y) == -1 && ttl.z == currentZoom) {
|
|
2594
2594
|
uniqueTilesToLoad.push(ttl.z+'|'+ttl.x+'|'+ttl.y);
|
|
2595
2595
|
}
|
|
2596
2596
|
});
|
|
@@ -2646,17 +2646,7 @@ export class MapOverlayManager {
|
|
|
2646
2646
|
|
|
2647
2647
|
tilesToLoad = [];
|
|
2648
2648
|
|
|
2649
|
-
console.log('ndviTileURL: '+ndviTileURL);
|
|
2650
|
-
|
|
2651
|
-
/*
|
|
2652
|
-
var zoomGMTiles = [];
|
|
2653
|
-
vgmTiles.forEach(function(v) {
|
|
2654
|
-
if(parseInt(v.substr(0,v.indexOf('|'))) == map.getZoom()) {
|
|
2655
|
-
zoomGMTiles.push(v);
|
|
2656
|
-
}
|
|
2657
|
-
|
|
2658
|
-
});
|
|
2659
|
-
*/
|
|
2649
|
+
//console.log('ndviTileURL: '+ndviTileURL);
|
|
2660
2650
|
|
|
2661
2651
|
var vdiMapType = new google.maps.ImageMapType({
|
|
2662
2652
|
getTileUrl: function (coord, zoom) {
|
|
@@ -2698,7 +2688,7 @@ export class MapOverlayManager {
|
|
|
2698
2688
|
let uniqueTilesToLoad = [];
|
|
2699
2689
|
tilesToLoad.forEach(function(ttl) {
|
|
2700
2690
|
//console.log(ttl.z+'|'+ttl.x+'|'+ttl.y);
|
|
2701
|
-
if(uniqueTilesToLoad.indexOf(ttl.z+'|'+ttl.x+'|'+ttl.y) == -1) {
|
|
2691
|
+
if(uniqueTilesToLoad.indexOf(ttl.z+'|'+ttl.x+'|'+ttl.y) == -1 && ttl.z == currentZoom) {
|
|
2702
2692
|
uniqueTilesToLoad.push(ttl.z+'|'+ttl.x+'|'+ttl.y);
|
|
2703
2693
|
}
|
|
2704
2694
|
});
|