Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 718 Bytes

File metadata and controls

32 lines (20 loc) · 718 Bytes

Map initial extent

Display the map at an initial viewpoint representing a bounding geometry.

screenshot

Use case

Setting the initial viewpoint is useful when a user wishes to first load the map at a particular area of interest.

How to use the sample

As application is loading, initial view point is set and map view opens at the given location.

How it works

  1. Instantiate an Map object.
  2. Instantiate a Viewpoint object using an Envelope object.
  3. Set the starting location of the map with map.InitialViewpoint.
  4. Display the map in a map view.

Relevant API

  • Map
  • Envelope
  • MapView
  • Point
  • Viewpoint

Tags

Envelope, InitialViewpoint, extent, zoom