Tangram is a MapZen company project. There is a smalll tutorial for getting started at https://tangrams.github.io/tangram-tutorial/
We choose to play with it, featuring basic map creation with Tangram.
Two files are required:
Demo is available at </thomasg77/52f729ba5bf18d5051018dec516fe778>
Feel free to ask any questions or improvements in the comments.
xxxxxxxxxx
<html lang="en">
<head>
<title>My Web Map</title>
<meta charset="utf-8">
<link rel="stylesheet" href="https://mapzen.com/js/mapzen.css">
<script src="https://mapzen.com/js/mapzen.min.js"></script>
<style>
#map {
height: 100%;
width: 100%;
position: absolute;
}
html,body{margin: 0; padding: 0}
</style>
</head>
<body>
<div id="map"></div>
<script>
var map = L.Mapzen.map('map', {
scene: 'vector.yaml'//L.Mapzen.BasemapStyles.TronMoreLabels
});
map.setView([37.7749, -122.4194], 12);
map.on('tangramloaded', function(event) {
console.log(event.tangramLayer);
});
var locator = L.Mapzen.locator();
locator.setPosition('bottomright');
locator.addTo(map);
L.Mapzen.hash({
map: map
});
</script>
</body>
</html>
https://mapzen.com/js/mapzen.min.js