0.1.2 • Published 4 years ago

leaflet.heremutant v0.1.2

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

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.

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago