Skip to content

Instantly share code, notes, and snippets.

@torresomar
torresomar / TileLayer.GeoJSON.js
Created November 16, 2016 21:44 — forked from glenrobertson/TileLayer.GeoJSON.js
Leaflet GeoJSON Tile Layer Example
// Load data tiles from an AJAX data source
L.TileLayer.Ajax = L.TileLayer.extend({
_requests: [],
_addTile: function (tilePoint) {
var tile = { datum: null, processed: false };
this._tiles[tilePoint.x + ':' + tilePoint.y] = tile;
this._loadTile(tile, tilePoint);
},
// XMLHttpRequest handler; closure over the XHR object, the layer, and the tile
_xhrHandler: function (req, layer, tile, tilePoint) {
@torresomar
torresomar / index.html
Last active August 13, 2016 00:05
grouped-bar-charts-d3
<html>
<head>
<title>
Grouped Bar Charts with d3.js (Tutorial)
</title>
<link rel="stylesheet" type="text/css" href="main.css"></link>
</head>
<body>
<div id="grouped-bar" class="grouped-bar">
</div>