Hi all,
we were using version 4.11 of the Javascript API. We are watching the MapView.animation property for changes.
When we run the following command: MapView.goTo({target: point, scale:100}, { animate: false });
no changes on the state of the animation property are occurring and that is the expected behavior (I guess).
We upgraded to version 4.12 of the Javascript API. The MapView.animation property is changing always independent of the value GoToOptions2D.animate
Is there a workaround for that? Or do we miss something?
Thanks!
Michalis
Solved! Go to Solution.
I tested the sample provided and yes, when the app initially loads, that updateLocationEnabled: true pans the map and that means the view is animated. After initial load, the view.animation behavior remains the same whether the updateLocationEnabled is true or false, which makes sense. Does this address your question?
Hi Michalis, do you have a sample or reproducible test app that demonstrates this?
Hi Noah,
thank you for the fast response. I think I have found the reason and it is not the goTo().
Before calling the goTo() function, I was calling the:
MapView.popup.open({features: selectedFeatures, updateLocationEnabled: true}).
The flag updateLocationEnabled is change the state of animation.
Please find below a small sample to reproduce it. I assume that this is an expected behavior, right?
I tested the sample provided and yes, when the app initially loads, that updateLocationEnabled: true pans the map and that means the view is animated. After initial load, the view.animation behavior remains the same whether the updateLocationEnabled is true or false, which makes sense. Does this address your question?
Yeap, thanks again for the fast responses and clear answer!