Polygon Zoom Scale

1279
4
11-19-2019 12:12 AM
Status: Open
KrishV
by
Occasional Contributor III

Set zoom level for polygon also would be great.

 

More information below:

https://community.esri.com/thread/238976-zoom-level-for-polygon 

Regards,

Krish

4 Comments
patrickb
Status changed to: Needs Clarification

@KrishV Polygons can vary greatly in size (which might imply different scale levels when zooming to their extent). Can you provide more details on how you'd want things to work? For example, would the expectation be to center the map on the polygon's centroid and then set the scale (regardless if the whole polygon 'fits' within the extent at the specified scale)? 

KrishV
by

Hi @patrickb ,

 

Yes, you are right. Polygons can very in size. The idea is when I select any Admin Level Boundaries from Category Selector or a List, the polygon should be properly zoomed in to cover the map. 

Please let me know if you need more clarification.

Thanks! 🙂

 

Regards,

Krish

lmatteo

Hi @patrickb,

To complete @KrishV suggestion, an idea might be to set the zoom to the maximal extent of the polygon by default and set a distance parameter (in meter or surface ratio ?) to decrease the zoom level.

Doing this should allow to (1) have an extent that perfectly fit the polygon (depending of the window format and the shape of the polygon, only East-West or North-South might be correctly fitted) and (2), adjusts the zoom level to keep a "border" around the polygon. 

 

Best,
Lionel

patrickb
Status changed to: Open

Closing due to inactivity and lack of engagement from the community. This idea can be re-opened with some more feedback. As things are currently implemented, polygon features selected in a list can be configured to zoom a map. The extent of the zoom is the minimum bounding rectangle of the selected feature(s).  The rectangle is passed to the map, and the map itself makes some decisions in terms of the best scale / level of detail to render at, but the end result is that the selected feature(s) should wholly be displayeed.