Is it possible to set the map to zoom to a particular level when clicking on an item in a list?
Solved! Go to Solution.
This is a great solution....why is it that when we are trying to do JSON code changes people always post screenshots of the code? WHY??? Just paste the text in here with formatting. Having to type out these long strings of code just leaves more room for error.
Using only points, I am not seeing any change with the zoom after adjusting it in JSON (photo below - line 111). I have tried different numbers, but no change (and valid JSON). Does this really work in a Dashboard with an Action of "zoom" from a Category Selector? If so - what am I doing run. If not - is there a way to do this?
Thanks
Same here, I've changed the pointZoomScale in both the JSON and also in the map zoom scale in Settings. There is no change. My problem is that when the map zooms to a point, it gets in so close I have no reference for where I am on the map, so have to manually zoom out. This is not going to be intuitive for the end user. I am also using Category Selectors for the zoom to map actions.
Yep. Exactly same issue. I did find a workaround that is pesky but effective. I created a buffer layer for each point (my points are scattered throughout Maryland and I set the buffer for 1 mile - not dissolved). The buffer layer has the attributes as the point. I then input those into the webmap and Dashboard and turned off their visibility, but enabled the zoom in the widget to go to the buffer and not the point. This actually worked, but is rather inefficient. Surely there must be a better way..?!
Definitely a creative workaround! I unfortunately can't use this method as this data is overwritten fairly often by a select group of editors (the View is what's in the dashboard), and this would add another step to every overwrite that could leave a lot of opportunity for errors and widget breakages. I tried the same zoom scale I had modified in a List widget, and that one zooms exactly how I want it. So I think you're right that it is a limitation or a bug with the Category Selector "zoom to's".
Good point. The updates will require an extra few steps. I will advocate for this addition to the category selector where I can. Thanks for commiserating.
Hello, did anyone provide a solution for a polygon zoom to extent within the List widget?
Not to my knowledge no. Are you aware of a solution?
... also looking for a solution to the polygon zoom to extent issue mentioned.
There is a workaround, no solution though. The workaround is to add a point layer (can use Feature to Point tool) and use this as your list in the dashboard. Then the point zoom will work and you can configure it so it looks like it's zooming in on your polygons.