-
Notifications
You must be signed in to change notification settings - Fork 6
/
map_seattle.html
44 lines (39 loc) · 1.22 KB
/
map_seattle.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!DOCTYPE html>
<html>
<head>
<script src='http://api.tiles.mapbox.com/mapbox.js/v1.0.0/mapbox.js'></script>
<link href='http://api.tiles.mapbox.com/mapbox.js/v1.0.0/mapbox.css' rel='stylesheet' />
<!--[if lte IE 8]>
<link href='http://api.tiles.mapbox.com/mapbox.js/v1.0.0/mapbox.ie.css' rel='stylesheet' >
<![endif]-->
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
</style>
</head>
<body>
<div id='map'></div>
<script type='text/javascript'>
// Based on the Leaflet example from http://leafletjs.com/examples/choropleth.html
var map = L.mapbox.map('map', 'mappingmashups.mapgardening_seattle_lines,mappingmashups.mapgardening_seattle_quadrat_1000m,mappingmashups.mapgardening_seattle_blankspots_1000m').setView([47.6, -122.3], 11);
var gridStyle = {
weight: 1,
opacity: 0.5,
color: 'yellow',
fillOpacity: 0,
clickable: false
}
var markerOptions = {
radius: 3,
fillColor: 'yellow',
color: 'black',
weight: 0.5,
opacity: 0.8,
fillOpacity: 0.8
};
function pointToLayer(feature, latlng) {
return L.circleMarker(latlng, markerOptions);
}
</script>
</body>
</html>