An open API service indexing awesome lists of open source software.

https://github.com/toyamarodrigo/react-here-maps

React components and examples for HERE Maps API for JavaScript.
https://github.com/toyamarodrigo/react-here-maps

here-maps-api heremaps map maps react reactjs

Last synced: 8 months ago
JSON representation

React components and examples for HERE Maps API for JavaScript.

Awesome Lists containing this project

README

          

# React HERE Maps

This package provides React hooks, components and examples for HERE Maps API for JavaScript.

![image](https://user-images.githubusercontent.com/41844101/221454450-4d1128e0-fb35-4385-969d-c7fae5493beb.png)

Demo:

## Installation

First, you need to include the HERE Maps API for JavaScript CSS in your HTML file.

```html





...

```

```bash
# After that, install the HERE Maps API for JavaScript with your favorite package manager
npm install --save-dev @here/maps-api-for-javascript --registry=https://repo.platform.here.com/artifactory/api/npm/maps-api-for-javascript/
```

```bash
# Then install @rodrito/react-here-maps with your favorite package manager
npm install @rodrito/react-here-maps

# or
yarn add @rodrito/react-here-maps

# or
pnpm add @rodrito/react-here-maps
```

## Usage

To use `@rodrito/react-here-maps`, you will need to obtain an API key from HERE Maps. You can sign up for a free account and obtain an API key here.

## Example

```jsx
import { HereMap } from '@rodrito/react-here-maps';

const App = () => {
return (



{/* Markers, Polylines and stuff */}


);
};
```

## TODO

- Components
- [x] Map
- [x] Marker
- [x] Zoom Control (Basic)
- [x] Scale Bar (Basic)
- [x] Map Settings (Basic)
- [x] Polyline
- [ ] Polygons

## HERE Maps API Docs