Display the map at an initial viewpoint representing a bounding geometry.
Setting the initial viewpoint is useful when a user wishes to first load the map at a particular area of interest.
When the sample loads, note that the map view opens at the initial viewpoint defined on the map.
- Instantiate a
Map
object. - Instantiate a
Viewpoint
object using anEnvelope
object. - Set the starting location of the map with
map.InitialViewpoint
. - Set the map in the
MapView
.
- Envelope
- Map
- MapView
- Point
- Viewpoint
envelope, extent, initial, viewpoint, zoom