Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Gabes Mak pixelbreaker

🏠
Working from home
View GitHub Profile
@pixelbreaker
pixelbreaker / leaflet-bing-ordnance-survey.js
Last active Nov 3, 2015 — forked from alexnorton/leaflet-bing-ordnance-survey.js
Use Bing Maps Ordnance Survey tiles as a Leaflet TileLayer
View leaflet-bing-ordnance-survey.js
var BingLayer = L.TileLayer.extend({
getTileUrl: function (tilePoint) {
this._adjustTilePoint(tilePoint);
return L.Util.template(this._url, {
s: this._getSubdomain(tilePoint),
q: this._quadKey(tilePoint.x, tilePoint.y, this._getZoomForUrl())
});
},
_quadKey: function (x, y, z) {
var quadKey = [];
You can’t perform that action at this time.