How to zoom/move to center position of map

684
2
Jump to solution
10-30-2019 10:20 PM
NishidhKhanapara
New Contributor

Hello,
I have 5 locations any on the map, after I added 5 Marker finished, I want to zoom the map to be able to see all of the 5 points above.

Help me please,

0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable

Getting the `Extent` of those 5 markers will return an `Envelope`. Use the `Envelope` as a parameter to a new `Viewpoint`.

Cheers,

Trevor

View solution in original post

2 Replies
by Anonymous User
Not applicable

Getting the `Extent` of those 5 markers will return an `Envelope`. Use the `Envelope` as a parameter to a new `Viewpoint`.

Cheers,

Trevor

NishidhKhanapara
New Contributor

Thanks for the help.

0 Kudos