Displays map tiles from HERE maps in your Leaflet map.
See the live demo.
L.tileLayer.here({appId: 'abcde', appCode: 'fghij'}).addTo(map);
The following options are available:
option | type | default | |
---|---|---|---|
scheme |
String | 'normal.day' |
The "map scheme", as documented in the HERE API. |
resource |
String | 'maptile' |
The "map resource", as documented in the HERE API. |
mapId |
String | 'newest' |
Version of the map tiles to be used, or a hash of an unique map |
format |
String | 'png8' |
Image format to be used (png8 , png , or jpg ) |
useCIT |
Boolean | false | Whether to use the CIT-URL when loading the tiles |
useHTTPS |
Boolean | true | Whether to use HTTPS when requesting the tiles |
language |
String | none | The primary language on the tiles |
language2 |
String | none | The second language on the tiles |
appId |
String | none | Required option. The app_id provided as part of the HERE credentials |
appCode |
String | none | Required option. The app_code provided as part of the HERE credentials |
"THE BEER-WARE LICENSE": [email protected] wrote this file. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return.