I currently am developing a map that uses the following code to set the map background:
//set the map background
L.tileLayer('http://{s}.tile.thunderforest.com/transport/{z}/{x}/{y}.png', {
attribution: 'http://www.thunderforest.com/'
}).addTo(map);
I have signed up for a Nokia HERE account so that I can use their transit map. I have an APP ID and APP CODE.
According to their instructions, (which I have also included below), I need to do a few steps before I can use their maps.
Can someone help me translate their steps into the what I need to do?
// Create a Platform object (one per application):
var platform = new H.service.Platform({ 'app_id': '{YOUR_APP_ID}',
'app_code': '{YOUR_APP_CODE}' });
// Get an object containing the default map layers:
var defaultLayers = platform.createDefaultLayers();
// Instantiate the map using the normal map as the base layer:
var map = new H.Map(document.getElementById('mapContainer',
defaultLayers.normal.map);
// Change the map base layer to the satellite map with traffic information:
map.setBaseLayer(defaultLayers.satellite.traffic);