Skip to content

Instantly share code, notes, and snippets.

@zbeat
Last active February 6, 2017 17:04
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 zbeat/89d6b75d9c1e66d662c78dbfe6c4efd6 to your computer and use it in GitHub Desktop.
Save zbeat/89d6b75d9c1e66d662c78dbfe6c4efd6 to your computer and use it in GitHub Desktop.
NHV issues map
license: gpl-3.0
height: 600
scrolling: no
border: no
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.7/leaflet.js"></script>
<script src='https://api.tiles.mapbox.com/mapbox.js/v1.6.4/mapbox.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox.js/v1.6.4/mapbox.css' rel='stylesheet' />
<style>
html,
body {
height: 100%;
width: 100%;
}
body {
margin: 0;
}
#map {
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div id="map"></div>
<script type="text/javascript">
var mapboxTiles = L.tileLayer('http://api.mapbox.com/v4/mapbox.streets/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoiemJlYXQiLCJhIjoicGNRS25fbyJ9.ECMdR2AXeYpDoiS0FKsQfg', {
attribution: '<a href="http://www.mapbox.com/about/maps/" target="_blank">Terms &amp; Feedback</a>'
});
var map = L.map('map')
.addLayer(mapboxTiles)
.setView([41.31037258994273, -72.92415951148531], 12);
var line = L.mapbox.featureLayer()
.loadURL('nhv-boundary.geojson')
.addTo(map);
var points = L.mapbox.featureLayer()
.loadURL('nhv-issues-500.geojson')
.addTo(map);
</script>
</body>
</html>
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment