When users are selecting a few objects, I want the map to zoom to the superset polygon of the polygons on the map automatically.
How can I achieve that with the map widget in Workshop ?
With the map app ?
When users are selecting a few objects, I want the map to zoom to the superset polygon of the polygons on the map automatically.
How can I achieve that with the map widget in Workshop ?
With the map app ?
Using the Map application template widget in workshop, there is a “zoom to object set” variable that you can specify. The map will fly / zoom so that the objects that are in that object set are visible on your map.
And Workshop’s Map widget has a Map viewport configuration section (see Map viewport in the core configuration):
- Map viewport: You can choose to either have the map automatically zoom to fit the bounds of the visible data, or have a preconfigured viewport used on the initial load of the map.
- Zoom to fit: The map will automatically zoom to fit the bounds of the visible data, and will adjust to accommodate changes in data (for instance, as a result of filtering).
- Max zoom to fit level: This sets the maximum zoom level for the map’s auto-zoom.
- Initial viewport: Preconfigured viewport shown on initial load; when using this setting, the map’s viewport will not be reset unless the page or tab is reloaded.