<BasemapBingMaps />

Bing basemap option (requires a Bing key to work properly)

Constructor

# <BasemapBingMaps map layerTypeID layerID translations thumbnail onBasemapChanged sourceOpts />

PropTypes:
Name Type Required Description Default
map object Yes reference to Openlayers map object
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'
layerID union No An string or symbol ID unique to the layer that this component will create (e.g. 'bingAerial'). 'bingAerial'
translations shape No Object with key/value pairs for translated strings
thumbnail string No A string containing an http url or data url to a thumbnail image ''
onBasemapChanged func No A callback that is fired when the basemap layer has been changed. It is called with the updated layer. () => {}
sourceOpts shape Yes The options object that will be used to create the ol/source/BingMaps (https://openlayers.org/en/latest/apidoc/module-ol_source_BingMaps-BingMaps.html) instance for the layer that this component adds to the map. While there are default sourceOpts it is required that an object containing at least a valid BingMaps Maps key is passed down to this component (https://www.microsoft.com/en-us/maps/create-a-bing-maps-key).
Since:
  • 0.1.0

View Source Basemaps/BingMaps.js, line 25