leaflet.heremutant

0.1.2 • Public • Published

Leaflet.HereMutant

A LeafletJS plugin to use HERE Map JS basemaps.

The name comes from MapkitMutant. It's catchy, even if MapkitMutant doesn't use DOM mutation observers.

Usage

Include the HERE Map JS API in your HTML, plus Leaflet:

<link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.3/dist/leaflet.css" />
<script src="https://unpkg.com/leaflet@1.3.3/dist/leaflet.js"></script>
<script src="https://js.api.here.com/v3/3.1/mapsjs-core.js" type="text/javascript" charset="utf-8"></script>
<script src="https://js.api.here.com/v3/3.1/mapsjs-service.js" type="text/javascript" charset="utf-8"></script>

Include the HereMutant javascript file:

<script src='https://unpkg.com/leaflet.heremutant@latest/Leaflet.HereMutant.js'></script>

Then, you can create an instance of L.HereMutant on your JS code:

var roads = L.hereMutant({
    // API Key which can be got at 'https://developer.here.com/'
    apikey: 'xxxx'
}).addTo(map);

Legalese

Licensed under MIT. See the LICENSE file for details.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i leaflet.heremutant

    Weekly Downloads

    1

    Version

    0.1.2

    License

    MIT

    Unpacked Size

    10.5 kB

    Total Files

    6

    Last publish

    Collaborators

    • kochizufan