React hooks, components and examples for HERE Maps API JS
npm install @rodrito/react-here-mapsThis package provides React hooks, components and examples for HERE Maps API for JavaScript.
Demo:
``bash`First add to .npmrc
@here:registry=https://repo.platform.here.com/artifactory/api/npm/maps-api-for-javascript/
`bashThen install @rodrito/react-here-maps with your favorite package manager
npm install @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 (
apikey={"YOUR_API_KEY"}
options={{
center: { lat: -34.603722, lng: -58.401592 },
zoom: 12,
}}
>
{/ Markers, Polylines and stuff /}
);
};
``- Components
- [x] Map
- [x] Marker
- [x] Zoom Control (Basic)
- [x] Scale Bar (Basic)
- [x] Map Settings (Basic)
- [x] Polyline
- [ ] Polygons