Skip to content

Commit

Permalink
Pass min/max zoom from MVTSource to MVTLayer
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtraschke committed Mar 6, 2016
1 parent dbbdd8b commit 2729804
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/MVTSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,9 @@ module.exports = L.TileLayer.MVTSource = L.TileLayer.Canvas.extend({
layerOrdering: self.options.layerOrdering,
style: self.style,
name: key,
asynch: true
asynch: true,
minZoom: self.options.minZoom,
maxZoom: self.options.maxZoom
};

if (self.options.zIndex) {
Expand Down

0 comments on commit 2729804

Please sign in to comment.