Skip to content

Commit

Permalink
Merge branch 'robbiet480-patch-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Thorin committed Feb 9, 2017
2 parents 932aa5b + dbb56b8 commit 62ad088
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ var osmTileJSON = {
"attribution": "© OpenStreetMap contributors, CC-BY-SA",
"scheme": "xyz",
"tiles": [
"http://a.tile.openstreetmap.org/${z}/${x}/${y}.png",
"http://b.tile.openstreetmap.org/${z}/${x}/${y}.png",
"http://c.tile.openstreetmap.org/${z}/${x}/${y}.png"
"http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
],
"subdomains": ["a","b","c"],
"minzoom": 0,
"maxzoom": 18,
"bounds": [ -180, -85, 180, 85 ],
Expand All @@ -42,3 +41,4 @@ This is, as everything else, a work in progress. Current known limitations are:
* No support for UTFGrid interaction. Mostly because Leaflet does not currently support UTFGrid.
* Only the first tile URL specified is used. The method for specifying this in the TileJSON
specification and in Leaflet differs in ways that makes it hard to implement in the general case.
* When using {s}, provide non-default subdomains (Leaflet defaults are abc) as a string or array. This is not in the TileJSON spec, and is only available here due to the previously mentioned limitation.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@
scheme: function(context, scheme) {
context.tileLayer.scheme = scheme;
},
subdomains: function(context, subdomains) {
context.tileLayer.subdomains = subdomains;
},
tilesize: function(context, tileSize) {
context.tileLayer.tileSize = tileSize;
},
Expand Down

0 comments on commit 62ad088

Please sign in to comment.