Select to view content in your preferred language

last event to center a map

785
2
Jump to solution
04-06-2012 04:44 AM
DeraldoSilva
Emerging Contributor
Hi.
My first view calls the Geolocation process. So long I have the gps location I call other view where there is a map. I need this map zoomed and centered at the gps location. Its in the right format. First I put a button in this view. After the view is loaded, I press the button and the zoom and location is set. Fine. I do not want the button, so I need the right event to set the zoom and location. All the events that I used, activate, viewactivate, map creationcompleted, the creationcompleted of the last component (a label). Neither worked. So, what is the correct event to do this?
thx in advance
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
AndyGup
Esri Regular Contributor
@Taryon, did you try waiting until after the map load event? I don't see it listed in your post below.

http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/Map.html#event:load

-Andy

View solution in original post

0 Kudos
2 Replies
AndyGup
Esri Regular Contributor
@Taryon, did you try waiting until after the map load event? I don't see it listed in your post below.

http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/Map.html#event:load

-Andy
0 Kudos
DeraldoSilva
Emerging Contributor
Nice!
worked like a charm!
I supposed that load was one of the first events, not the last.
thx for your attention.
0 Kudos