Hi there,
I want to use url parameters to Query a feature and zoom to it at 1:1000 scale.
I have tried
and
This will zoom to level 11 (or (or scale 1000) and then zoom to the query.
Is there a way to adjust my URL so it zooms to the selected feature at 1:1000?
Thank you,
Anne
Solved! Go to Solution.
Anne,
No you can not do that as the query will always take priority or the scale parameter, because the query parameter take some time to return the deferred result and the scale gets executed almost always prior to that. The Query will set the maps extent to the extent of the results.
Also to use the scale parameter it must be combined with the center parameter:
To define the scale of the map, use the center= and scale= parameters.
Anne,
No you can not do that as the query will always take priority or the scale parameter, because the query parameter take some time to return the deferred result and the scale gets executed almost always prior to that. The Query will set the maps extent to the extent of the results.
Also to use the scale parameter it must be combined with the center parameter:
To define the scale of the map, use the center= and scale= parameters.
thank you, good information to have