React Here Maps

React Here Maps

  • Docs
  • API
  • Help
  • GitHub

›API Reference

Introduction

  • Installation

API Reference

  • <HEREMap />
  • <Marker />
  • <RouteLine />
  • <Circle />
  • usePlatform()

<Circle />

<Circle /> is the component used for displaying circle shapes on the map.

Usage

import React from 'react':
import { HEREMap, Marker, Circle } from 'here-maps-react';

export function Map() {
  const [shape, setShape] = React.useState([]);

  React.useEffect(() => {
    ...
    setShape([...]);
  });

  return (
    <HEREMap
      appId="my_app_id"
      appCode="my_app_code"
      center={{ lat: 10.998666, lng: -63.79841 }}
      zoom={12}
    >
      <Marker lat={10.998666} lng={-63.79841} />
      <Circle radius={20} lat={10.998666} lng={-63.79841} />
     </HEREMap>
  );
}

Props

Available

  • lat: H.geo.Latitude;
  • lng: H.geo.Longitude;
  • radius: number;
  • strokeColor?: string;
  • lineWidth?: number;
  • fillColor?: string;

To be implemented

  • style?: H.map.SpatialStyle | H.map.SpatialStyle.Options;
  • visibility?: boolean;
  • precision?: number;
  • zIndex?: number;
  • min?: number;
  • max?: number;
  • provider?: H.map.provider.Provider;
  • data?: any;

Reference

You can find more info about this types here.

Last updated on 8/15/2019 by Gustavo Ordaz
← <RouteLine />usePlatform() →
  • Usage
    • Props
    • Reference
React Here Maps
Docs
Getting Started
Community
Twitter
More
GitHubStar
Copyright © 2021 ordazgustavo