Hi!
Is there an event/property I can use to determine when functions like LocationToScreen() can be called? I noticed that I have to wait several hundred milliseconds until this function doesn't return (NaN, NaN).
-Alexander
Hi Morten,
thanks. Waiting only for SpatialReference != null doesn't work, but waiting for VisibleArea != null seems to work.
Wait for the VisibleArea or SpatialReference property on the view has been established. You could also wait for the first ViewpointChanged event.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.