Dear all,
recently i came across a strange behaviour of the Esri-JavaScript Api 4.13.
The MapView.scale was set in one method, and then the getter was called in another method. But the value returned was still the old one. I stepped inside the sources to the point where the set and get methods are implemented (Accessor, then MapView) and realised that there is a flag "internallyReady", which, in case of the getter, is used to decide which value to return, the old one or the new one.
I locked up the Api-Docs, but there was not any note about the scale property being asynchronous. To me it seems kind of odd, that a getter/setter is showing this kind behaviour. When is it save to call the getter to receive the value that was actually set?
Am i missing something?
Best regards
Andreas