D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
tmcw
Full window
Github gist
markers.js with the simplestyle factory
<!DOCTYPE html> <html> <head> <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' /> <style> body { margin:0; padding: 0; } </style> </head> <body> <div id='ss-map' style='width:958px;height:200px;'></div> <script> wax.tilejson('https://a.tiles.mapbox.com/v3/tmcw.map-5vaivzxq.jsonp', function(tj) { var m = new MM.Map('ss-map', new wax.mm.connector(tj)) .setCenterZoom({ lat: 37.8, lon: -77 }, 7); var tomLayer = mapbox.markers.layer() .url('simplestyle.geojson', function(feat, l) { mapbox.markers.interaction(l); }); m.addLayer(tomLayer); }); </script> </body>