React Here Maps

React Here Maps

  • Docs
  • API
  • Help
  • GitHub

›API Reference

Introduction

  • Installation

API Reference

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

usePlatform()

usePlatform() is a hook that you can use to initialize the HERE Maps service Platform by yourselve.

Usage

import React from 'react':
import { usePlatform } from 'here-maps-react';

export function Map() {
  const platform = usePlatform({
    app_code: appCode,
    app_id: appId,
    useHTTPS: true,
  });

  ...
}

It receives all of the options that you can pass to the H.service.Platform constructor as a first argument and an optional scriptsLoaded?: boolean (defaults to true) which is mostly for internal use, and returns a H.service.Platform.

Reference

You can find more info about this types here.

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