I have been working with the latest Javascript API 4.0, and have noticed that when you launch the web page and click to get a z value, it is incorrect depending on your initial zoom level. If you set the zoom level at 7 or less (or about 1:4,000,000), the z value of a point is incorrect, but if the zoom level is at 8 or higher, then it is correct. Also, if you launch the web page with a zoom level of 7 or less, and zoom in by one level (ie. to 8), then back out to 7, it reports the correct z value. It seems that it depends on the initial zoom level when starting the application. Is this a bug?
Sample code is attached.
Thanks,
Charlie