Skip to content

Instantly share code, notes, and snippets.

@lene
Created March 8, 2018 11:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lene/82300a6b1da5cb945ffd1d5eb59bfad7 to your computer and use it in GitHub Desktop.
Save lene/82300a6b1da5cb945ffd1d5eb59bfad7 to your computer and use it in GitHub Desktop.
Creating a map using the HERE Maps Javascript API
var platform = new H.service.Platform({
useCIT: true,
app_id: '{YOUR_APP_ID}', // // <-- ENTER YOUR APP ID HERE
app_code: '{YOUR_APP_CODE}', // <-- ENTER YOUR APP CODE HERE
});
var maptypes = platform.createDefaultLayers();
var map = new H.Map(document.getElementById('map'), maptypes.terrain.map, {
zoom: 9,
center: { lat: 41.884238, lng: -87.638862 }
});
var ui = H.ui.UI.createDefault(map, maptypes);
var mapevents = new H.mapevents.MapEvents(map);
var behavior = new H.mapevents.Behavior(mapevents);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment