Quickstart Guide
This guide will help you create your first map application using React HERE Maps.Prerequisites
HERE Maps API Key
HERE Maps API Key
You’ll need a HERE Maps API key. Get one for free at developer.here.com.
React 18+
React 18+
This library requires React 18 or higher for concurrent features and improved SSR support.
Installation
1
Install the packages
Install both the React HERE Maps library and the HERE Maps JavaScript API:Or with pnpm:Or with yarn:
2
Get your HERE API key
- Sign up at developer.here.com
- Create a new project
- Generate an API key
- Copy your API key for the next step
3
Create your first map
Create a new component with a basic map:
4
Add environment variables (recommended)
For security, store your API key in environment variables:Then use it in your component:
.env.local
Your First Interactive Map
Let’s add some interactivity with a draggable marker:Common Patterns
Multiple Markers
Drawing Polylines
Next Steps
Map Context
Learn about the context system
Components API
Explore all available components
TypeScript Guide
Type-safe development patterns
Examples
View more interactive examples
Troubleshooting
Map not displaying
Map not displaying
Make sure you have:
- Set a height on the map container
- Provided a valid HERE API key
- Installed both required packages
TypeScript errors
TypeScript errors
Install the type definitions:
API key errors
API key errors
Verify that:
- Your API key is valid and active
- The key has the required permissions
- You’re not hitting rate limits