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.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.