Skip to content

Instantly share code, notes, and snippets.

View mureithi254's full-sized avatar

James Mureithi mureithi254

View GitHub Profile
@mureithi254
mureithi254 / map.js
Created November 10, 2017 12:36 — forked from lizvdk/map.js
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,