<BasemapContainer />

A floating basemap selector that slides options up to toggle basemap

Constructor

# <BasemapContainer basemapOptions layerTypeID map style translations variation />

PropTypes:
Name Type Required Description Default
basemapOptions array No array of basemaps i.e. BasemapOpenStreetMap, BasemapStamenTerrain [ , , , , ]
layerTypeID union No A unique string or symbol property name that will be set directly on the layer when it is created with a value containing a string identifying the type of basemap layer (e.g. '_ol_kit_basemap': 'osm'). This property should be a shared ID used to identify individual layers as 'basemap' layers. '_ol_kit_basemap'
map object Yes reference to Openlayers map object
style object No apply inline styles to the map container
translations shape Yes object of string key/values (see: locales)
variation string No light or dark variation for styling
Since:
  • 0.7.0

View Source Basemaps/BasemapContainer.js, line 18