Skip to content

Instantly share code, notes, and snippets.

View mureithi254's full-sized avatar

James Mureithi mureithi254

View GitHub Profile
@lizvdk
lizvdk / map.js
Last active November 10, 2017 12:42
Creating GeoJson
function drawIndexReportMap(){
L.mapbox.accessToken = "YOUR_TOKEN";
var map = L.mapbox.map("map", "lizvdk.knp8dn4m", { zoomControl: false }):
var featureLayer = L.mapbox.featureLayer().addTo(map);
featureLayer.on('layeradd', function (e) {
featureLayer.eachLayer(function(layer) {
var marker = e.layer,