Skip to content
Browse files

Merge pull request #275 from bshelton229/leaflet-0.6

Prep leaf.connector tilejson bounds for L.LatLngBounds.
  • Loading branch information...
2 parents ed4fd0b + 796f9cd commit 67963bef6165f347b5a1766f5ffccef6606125bb @tmcw tmcw committed
Showing with 6 additions and 0 deletions.
  1. +6 −0 connectors/leaf/connector.js
View
6 connectors/leaf/connector.js
@@ -4,6 +4,12 @@ wax.leaf = wax.leaf || {};
wax.leaf.connector = L.TileLayer.extend({
initialize: function(options) {
options = options || {};
+ if (options.bounds) {
+ options.bounds = [
+ [options.bounds[1], options.bounds[0]],
+ [options.bounds[3], options.bounds[2]]
+ ]
+ }
options.minZoom = options.minzoom || 0;
options.maxZoom = options.maxzoom || 22;
L.TileLayer.prototype.initialize.call(this, options.tiles[0], options);

0 comments on commit 67963be

Please sign in to comment.
Something went wrong with that request. Please try again.