Is it possible to set the map to zoom to a particular level when clicking on an item in a list?
For polylines and polygons, the app zooms to the extent of the feature.
For points, there is a "pointZoomScale" property that can be added/modified in the dashboard json (via AGO Assistant or other) to set a specific zoom scale. This property is not exposed to the dashboard creator at this time and must be manually changed in the json.
The app currently defaults to 10,000. So setting this property to a value like 1,000 will allow the map to zoom in more. The setting is per-webmap.
Make sure to have the correct capitalization or it will not respect the parameter:
thanks this worked, however my JSON did not have this parameter to begin with, I had to add it.
Correct, this is a parameter that we had to add to this JSON, it was not already there.
I want to zoom to a polygon (buildings) and show some of the surrounding area for context. Is there a polygonZoomScale property too? I tried it but nothing happened.
I have the same issue as well. The zoom to polygons is not very good. Is there a setting that can be changed for polygons? Aaron Pulver
How do you get to the dashboard json in order to modify this parameter?
You can use ArcGIS Online Assistant to get the Dashboard's JSON. However, please be careful when editing the JSON configurations as it could cause errors with the Dashboard. It is recommended to save a copy of the Dashboard, rather than editing the actual Dashboard.
I would like to do something similar for an Operations Dashboard category selector Action = Zoom.
My OD map has a polygon selector based on Council Districts. It works fine but the zoom threshold is so large as to almost be not helpful.
I see all of the configurable Action filters, in the JSON, but don't see where I could adjust the selector actions zoom properties.
I've made a copy of my dashboard and tried editing the json to add the "pointZoomScale": 10, line however after saving and reopening the dashboard no change. When I tap my list, all other points still disappear leaving only the one, but my map does not zoom into that point at all (which can make it extremely difficult to find).
Where exactly does the pointZoomScale need to be added into the json? If it's in the correct location (I've tried it in the following 2 places), is there an configuration I'm missing in the dashboard?
It looks like you're in the correct spot, but a zoom level of 10 would put your eyeball right up against a grasshopper's kneecap.
Try something like 1,500, and make sure you don't have a filter action that is filtering your other points (or filtering a list that has it's own filter action, etc). You should be able to change the point zoom scale in the dashboard map's settings once you change it in the JSON (in my experience).
Is there a conversion of pointZoomScale values to the pre defined zoom levels on a map?
Retrieving data ...