Last active
October 25, 2022 20:17
-
-
Save virtualandy/9602000 to your computer and use it in GitHub Desktop.
Simple demo using Here maps and Leaflet.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#map { | |
height: 600px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment