Friday 3 February 2017

extents - Start ArcGIS Web Map Zoomed to Query


Can you have an ArcGIS Online map, you know one that you share and embed on a web page or link to, automatically start at an extent that is defined in a query of some sort?


Ideally it would be great if it could be inserted into the HTML link such as:


https://domain.maps.arcgis.com/apps/webappviewer/index.html?id=a618e74cc2cb439197413549eeb1256bx123&Fieldname=XYZ


Can this be accomplished or something similar?



Answer



You can configure feature search for that layer on the field you wish to be searchable. Once you have done that use the &find=XYZ which will return that result.


You configure feature search on the web map settings tab on the item details page for the web map. The layer must have query enabled to work.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...