Skip to content

Instantly share code, notes, and snippets.

View iandees's full-sized avatar
🏠
Working from home

Ian Dees iandees

🏠
Working from home
View GitHub Profile
#!/bin/bash
# works with a file called VERSION in the current directory,
# the contents of which should be a semantic version number
# such as "1.2.3"
# this script will display the current version, automatically
# suggest a "minor" version update, and ask for input to use
# the suggestion, or a newly entered value.
// 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) {

Learn How to Use OpenStreetMap US Resources

Join us for a 1 hour virtual workshop on how to use OpenStreetMap US server resources.

OpenStreetMap US provides a series of server resources to the OpenStreetMap community free of charge. You can use these servers for jobs that are too large or too long running for your local machine and for cooperating with other community members.

You can see a full list of our servers on our Wiki. These servers offer the following:

  • Full, hourly updated copy of the OpenStreetMap rendering database
  • Latest Mapnik installed and the ability to render and cache arbitrary tile sets