Skip to content

Instantly share code, notes, and snippets.

View huangsong's full-sized avatar
💭
I may be slow to respond.

Song Huang huangsong

💭
I may be slow to respond.
View GitHub Profile
@mourner
mourner / TileLayer.Common.js
Created February 11, 2012 23:11
Leaflet shortcuts for common tile providers
// Lefalet shortcuts for common tile providers - is it worth adding such 1.5kb to Leaflet core?
L.TileLayer.Common = L.TileLayer.extend({
initialize: function (options) {
L.TileLayer.prototype.initialize.call(this, this.url, options);
}
});
(function () {