Skip to content

Instantly share code, notes, and snippets.

@IvanSanchez
Created February 12, 2016 12:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IvanSanchez/6a084d2a748d190010aa to your computer and use it in GitHub Desktop.
Save IvanSanchez/6a084d2a748d190010aa to your computer and use it in GitHub Desktop.
L.TileLayer.GeoJSON.Multi = L.TileLayer.GeoJSON.extend({
addTileData: function(json, tilePoint) {
for (var featureName in json) {
var geojson = json[featureName];
L.TileLayer.GeoJSON.prototype.addTileData.apply(geojson, tilePoint);
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment