Combining Query and Scale URL parameters

924
2
Jump to solution
03-15-2017 04:13 PM
AnneShanahan
New Contributor II

Hi there, 

I want to use url parameters to Query a feature and zoom to it at 1:1000 scale. 

I have tried 

http://www.arcgis.com/apps/webappviewer/index.html?id=8c87adc99d064e66acabf440f068b4c2&query=Search_...11

and

http://www.arcgis.com/apps/webappviewer/index.html?id=8c87adc99d064e66acabf440f068b4c2&query=Search_...

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 

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Esteemed Contributor

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.

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor

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.

0 Kudos
AnneShanahan
New Contributor II

thank you, good information to have 

0 Kudos