Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 641 Bytes

File metadata and controls

13 lines (9 loc) · 641 Bytes

Basemaps

basemaps app

The Basemaps sample app shows how you can switch basemaps offered in the ActionBar overflow button.

Features

  • MapView
  • MapOptions
  • MenuItem

Sample Design

The ActionBar overflow button lists a group of basemaps to choose from. The Basemap types are made available from the MapOptions.MapType Enum. The MapView.setMapOptions() takes the MapType as a parameter to switch basemaps. The setExtent() and ````setOnStatusChangedListener()methods on theMapView``` are used to preserve the current extent of the map when the basemap is changed.