HereMap
TheHereMap component is the main container for HERE Maps. It provides the map context to all child components through React Context.
Props
string
required
Your HERE Maps API key. Get one at developer.here.com
object
Map initialization options
string
Map style/theme. Defaults to
"vector.normal.map"Available styles:vector.normal.map- Standard vector mapraster.satellite.map- Satellite imageryraster.terrain.map- Terrain viewraster.normal.mapnight- Night mode
ReactNode
Child components (Markers, Polylines, Controls, etc.)
Basic Usage
Map Styles
- Normal
- Satellite
- Terrain
- Night Mode
With Child Components
Context Provider
TheHereMap component provides a context that can be accessed by child components:
Engine Types
P2D (Default)
2D rendering engine. Better performance on older devices.
WEBGL
WebGL rendering engine. Better performance with complex visualizations.
See Also
Map Context
Learn about the context system
Marker
Add markers to the map
Controls
Add interactive controls