Skip to main content

Quickstart Guide

This guide will help you create your first map application using React HERE Maps.

Prerequisites

You’ll need a HERE Maps API key. Get one for free at developer.here.com.
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

  1. Sign up at developer.here.com
  2. Create a new project
  3. Generate an API key
  4. Copy your API key for the next step
3

Create your first map

Create a new component with a basic map:
Make sure to set a height on the container. The map needs a defined height to render properly.
4

Add environment variables (recommended)

For security, store your API key in environment variables:
.env.local
Then use it in your component:

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

Make sure you have:
  • Set a height on the map container
  • Provided a valid HERE API key
  • Installed both required packages
Install the type definitions:
Verify that:
  • Your API key is valid and active
  • The key has the required permissions
  • You’re not hitting rate limits