Issue with 4.22 and zoom property

510
2
01-12-2022 03:09 AM
MatthieuThery1
Occasional Contributor

Hello,

On some of our maps (typically the ones with a local projection), it fails to load at all and we are getting an error in the console related to the "viewPoint" js file.

MatthieuThery1_2-1641985739824.png

 

I located the issue to be the zoom property when instanciating the MapView.

MatthieuThery1_0-1641985620047.png

The workaround I found, is to remove that property and zoom right after.

MatthieuThery1_1-1641985669952.png

It was working fine in 4.21.

Thanks.

Tags (3)
2 Replies
Noah-Sager
Esri Regular Contributor

Hi @MatthieuThery1, can you share a simplified test-app that reproduces the issue? I might be confused, but how can the `zoom` variable be both a valid zoom value and a valid goTo object?

0 Kudos
MatthewDriscoll
MVP Alum

In the new MapView do:

zoom: 1

Play around with the value until you get the desired zoom level.

0 Kudos