Last active
March 22, 2018 17:22
-
-
Save maptastik/85f5f1ab792e4833866f42db7178cdbd to your computer and use it in GitHub Desktop.
Tangram Choropleth: Starter Files
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> | |
<meta charset="utf-8" /> | |
<title>TangramJS - Mixing with raster tiles</title> | |
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" /> | |
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.3/dist/leaflet.css" /> | |
<style> | |
body { | |
margin: 0; | |
padding: 0; | |
} | |
#map { | |
position: absolute; | |
top: 0; | |
bottom: 0; | |
width: 100%; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="map"></div> | |
<script src="https://unpkg.com/leaflet@1.0.3/dist/leaflet.js"></script> | |
<script src="https://unpkg.com/tangram/dist/tangram.min.js"></script> | |
<script> | |
var kentucky = [37.857507, -85.632935] | |
var map = L.map('map', { | |
center: kentucky, | |
zoom: 7, | |
}); | |
</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
sources: | |
styles: | |
layers: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment