Skip to content

Instantly share code, notes, and snippets.

@burritojustice
Last active June 29, 2016 17:32
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 burritojustice/74b6637eed0e5f87ea85cc96da335ae3 to your computer and use it in GitHub Desktop.
Save burritojustice/74b6637eed0e5f87ea85cc96da335ae3 to your computer and use it in GitHub Desktop.
denmark
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" href="https://mapzen.com/js/0.1.0/mapzen.css">
<script src="https://mapzen.com/js/0.1.0/mapzen.min.js"></script>
</head>
<body>
<div id="map"></div>
<script>
var map_yo = L.Mapzen.map('map', {
center: [56.193,11.623],
zoom: 6,
scene: "https://gist.githubusercontent.com/burritojustice/f4aae82a0bd4a0cd985a3e263d5a9057/raw/scene.yaml"
})
// var locator = L.Mapzen.locator();
// locator.setPosition('bottomright');
// locator.addTo(map);
var geocoder = L.Mapzen.geocoder("search-0ddZJIk");
geocoder.addTo(map_yo);
geocoder.setPosition('bottomright');
L.Mapzen.hash({
geocoder: geocoder,
// 'map': map_yo
});
L.Mapzen.bug({
name: 'Web Map',
link: 'https://erasermap.com/maps',
tweet: '@mapzen',
repo: 'https://github.com/mapzen/web-map'
});
bug.addTo(map_yo);
// L.control.zoom({position:'topright'}).addTo(map_yo);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment