Created
February 17, 2016 12:39
-
-
Save here-devblog-gists/e8a289e7063a25d6e577 to your computer and use it in GitHub Desktop.
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
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Leaflet Test</title> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css" /> | |
<script src="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js"></script> | |
<style> | |
html,body,#map { | |
height: 100% | |
} | |
body { | |
margin: 0; | |
padding: 0 | |
} | |
</style> | |
</head> | |
<body> | |
<div id="map"></div> | |
<script type="text/javascript" charset="utf-8"> | |
var map = L.map('map').setView([52.53, 13.38], 13); | |
L.tileLayer('http://{s}.{base}.maps.cit.api.here.com/maptile/2.1/{type}/{mapID}/{scheme}/{z}/{x}/{y}/{size}/{format}?app_id={app_id}&app_code={app_code}&lg={language}', { | |
attribution: 'Map © 2016 <a href="http://developer.here.com">HERE</a>', | |
subdomains: '1234', | |
base: 'base', | |
type: 'maptile', | |
scheme: 'normal.day', | |
app_id: '{app_id}', | |
app_code: '{app_code}', | |
mapID: 'newest', | |
maxZoom: 20, | |
language: 'eng', | |
format: 'png8', | |
size: '256' | |
}).addTo(map); | |
var marker = L.marker([52.53, 13.38]).addTo(map); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment