Skip to content

Instantly share code, notes, and snippets.

@virtualandy
Last active October 25, 2022 20:17
Show Gist options
  • Save virtualandy/9602000 to your computer and use it in GitHub Desktop.
Save virtualandy/9602000 to your computer and use it in GitHub Desktop.
Simple demo using Here maps and Leaflet.
<!doctype html>
<html>
<head>
<title>Just a simple demo.</title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js"></script>
<link rel="stylesheet" href="./map.css" />
</head>
<body>
<p><strong>Here</strong> we go!</p>
<div id="map">Map goes here</div>
<script>
var map = L.map('map', {
center: [60.205556, 24.655556],
zoom: 6
});
var layer = L.tileLayer("http://1.base.maps.cit.api.here.com/maptile/2.1/maptile/newest/normal.day/{z}/{x}/{y}/256/png8?app_id=0FTURGZoWPYxBtqn6Jht&app_code=KRzKipEZJLjS2lBw8zWLZw"
, {
styleId: 997
}).addTo(map);
</script>
</body>
</html>
#map {
height: 600px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment