Select to view content in your preferred language

problems with refreshing ImageryTiles when zooming programatically

134
1
Jump to solution
a week ago
MichaelNüßlein
Occasional Contributor

I upgraded my js SDK from 3.13 to 4.28 and struggle with refreshing the ImageryTileLayer as  base map layer when programmatically changing the zoom and center of the map.

Before the update I could just call the centerAndZoom method, since then I am directly setting the zoom and center property of my view. This updates the view but not the map layer, at least not correctly.

 

If zoomed close the map is just blurry and if zoomed far out the map just loads a few tiles. But when I drag it manually it immediately refreshes correctly. Also the refreshInterval is working as expected, sadly it is too slow for my needs.

 

The layer refresh method and cloning and reapplying the layer didn't help.

 

I'd appreciate any help.

1 Solution

Accepted Solutions
JoelBennett
MVP Regular Contributor

You can probably achieve the desired behavior by using the goTo method of the MapView.  For example:

mapView.goTo({
	target: point,
	zoom: 16
});

 

View solution in original post

0 Kudos
1 Reply
JoelBennett
MVP Regular Contributor

You can probably achieve the desired behavior by using the goTo method of the MapView.  For example:

mapView.goTo({
	target: point,
	zoom: 16
});

 

0 Kudos