leaflet.heremutant

A LeafletJS plugin to use HERE Map JS basemaps.

Usage no npm install needed!

<script type="module">
  import leafletHeremutant from 'https://cdn.skypack.dev/leaflet.heremutant';
</script>

README

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.