<title>markers.js: simple markers for Modest Maps</title>
<script type='text/javascript'
src='https://mapbox.com/markers.js/dist/markers.min.js'></script>
<script type='text/javascript'
src='https://mapbox.com/markers.js/dist/markers.externals.js'></script>
<link href='https://mapbox.com/markers.js/dist/markers.css'
rel='stylesheet' type='text/css' />
body { font: 14px/20px 'Helvetica', 'Helvetica Neue'; background:#eee; }
border-right:1px solid #000;
<div class='map' id='map'></div>
<script type='text/javascript' src='google_docs.js'></script>
<script type='text/javascript'>
wax.tilejson('https://a.tiles.mapbox.com/v3/tmcw.map-bzuvyug3.jsonp',
var m = new MM.Map('map', new wax.mm.connector(tj));
mmg_google_docs('0ApRKQU2Gi7CrdHBObkhYTEdLUGxvZjF3bXo3REppU0E', function(features) {
features = features.map(function(f) {
f.properties.title = f.properties.occupation,
f.properties.description = f.properties.incidenttype
types[f.properties.incidenttype] = true;
var ml = mapbox.markers.layer()
mapbox.markers.interaction(ml);
for (var type in types) {
var input = document.getElementById('options').appendChild(document.createElement('input'));
input.onchange = function() {
return (that.value === 'All') ? true : f.properties.incidenttype == that.value;
var label = document.getElementById('options').appendChild(document.createElement('label'));
label.setAttribute('for', type);
document.getElementById('options').appendChild(document.createElement('br'));