leaflet.heremutant
v0.1.2
Published
A [LeafletJS](http://leafletjs.com/) plugin to use [HERE Map JS](https://developer.here.com/documentation/maps/dev_guide/topics/overview.html) basemaps.
Downloads
2
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/[email protected]/dist/leaflet.css" />
<script src="https://unpkg.com/[email protected]/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.