cmv / cmv-app

CMV - The Configurable Map Viewer - A community supported open source mapping framework built with the Esri JavaScript API and the Dojo Toolkit
https://demo.cmv.io/
MIT License
323 stars 278 forks source link

Zoom Level in Attribute Grid #981

Closed azinsharaf closed 2 years ago

azinsharaf commented 3 years ago

When we click on a row in search result grid, it zooms to the feature on the map. For the points it zooms in too much so we always have to zoom out manually. Is there anyway to set a default zoom level for this?

image

tmcgee commented 3 years ago

the default value of pointExtentSize used to expand the zoom extent is 250 meters (assuming Web Mercator). That is intended to show 250 meters in all 4 directions around the point. I believe you can adjust the size to your liking though it isn't documented.

A scalebar of 2m/4ft suggests your zoomed in much closer than that 250 meters. I don't know why that would be without knowing more about your configuration and use case.