0.1.16 • Published 3 months ago

@toyamarodrigo/react-here-maps v0.1.16

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

React HERE Maps

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

image

Demo: https://react-here-maps.vercel.app/

Installation

# First Install you need to install @here/@here/maps-api-for-javascript
npm install --save-dev @here/maps-api-for-javascript --registry=https://repo.platform.here.com/artifactory/api/npm/maps-api-for-javascript/
# Then install @toyamarodrigo/react-here-maps with your favorite package manager
npm install @toyamarodrigo/react-here-maps

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

# or
pnpm add @toyamarodrigo/react-here-maps

Usage

To use @toyamarodrigo/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.

https://developer.here.com/tutorials/getting-here-credentials/

Example

import React from 'react';
import { HereMap } from '@toyamarodrigo/react-here-maps';

const App = () => {
  return (
    <div style={{ height: "100vh", width: "100vw" }}>
      <HereMap
        apiKey={"YOUR_API_KEY"}
        mapOptions={{
          center: {
            lat: -34.6083,
            lng: -58.3712,
          },
          zoom: 12,
        }}
      >
      {/* Markers, Polylines and stuff */}
      </HereMap>
    </div>
  );
};

TODO

  • Components

    • Map
    • Marker
    • DOM Marker
    • Polygons
    • Polyline
    • Circles
    • InfoWindows
    • Directions
  • Hooks

    • Map Instance - useHereMaps
    • Routing - useRoutingService
    • Geocoding & Search - useGeocodingService
    • Isoline - useIsolineService
    • Waypoints - useWaypointsService
    • Matrix - useMatrixService

HERE Maps API Docs

https://developer.here.com/documentation/maps/3.1.38.0/dev_guide/index.html

0.1.16

3 months ago

0.1.15

8 months ago

0.1.13

11 months ago

0.1.14

11 months ago

1.0.2

12 months ago

1.0.1

12 months ago

0.1.10

12 months ago

1.0.0

12 months ago

0.1.11

12 months ago

0.1.12

12 months ago

1.0.9

12 months ago

1.0.8

12 months ago

1.0.7

12 months ago

1.0.6

12 months ago

1.0.5

12 months ago

1.0.4

12 months ago

1.0.3

12 months ago

0.1.9

12 months ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago