Skip to content

Instantly share code, notes, and snippets.

View tomasholderness's full-sized avatar

Tomas Holderness tomasholderness

View GitHub Profile
@mgvarley
mgvarley / italy.geojson
Created July 19, 2017 15:29
Mark in Italy
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@calvinmetcalf
calvinmetcalf / leaflet.bootstrap.js
Last active December 15, 2015 09:29
Use leaflet with bootstrap without the layer control looking horrible.
L.Control.Layers.prototype._addItem= function (obj) {
var label = document.createElement('label'),
input,
checked = this._map.hasLayer(obj.layer);
if (obj.overlay) {
input = document.createElement('input');
input.type = 'checkbox';
input.className = 'leaflet-control-layers-selector';
input.defaultChecked = checked;