Hey everybody,
In my javascript application I use the ESRI Geocoder and once a match has been selected it zooms to the match.
What I try to do is after my map zooms to the match I want to zoom out to a specific extent, which should be possible by using map.setExtent().
This only works if I am in developer mode and I put a break point at map.setExtent() , which leaves me to believe that the zooming initiated by the geocoder takes some time and happens after I do map.setExtent()
Since Jive hates me posting code, I have put the relevant code in this fiddle: Edit fiddle - JSFiddle
Thanks for any help!
Tim
Solved! Go to Solution.
Tim,
Have you looked at setting the Geocoders autoNavigate property to false seems how you are not wanting the extent that the Geocoder takes you to?
Geocoder | API Reference | ArcGIS API for JavaScript | autoNavigate
Tim,
Have you looked at setting the Geocoders autoNavigate property to false seems how you are not wanting the extent that the Geocoder takes you to?
Geocoder | API Reference | ArcGIS API for JavaScript | autoNavigate
Thanks Robert, that's exactly what I needed.