leaflet-virtual-grid
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -5,4 +5,18 @@ # Change Log | ||
## 0.1.1 | ||
[Unreleased] | ||
## [1.0.1] | ||
### Changed | ||
* grid no longer attempts to honor min/maxZoom specified by layer manager (more info [here](https://github.com/Esri/esri-leaflet/pull/660#issuecomment-151680624)) | ||
## [1.0.0] | ||
### Added | ||
* Support for Leaflet 1.0.0-beta | ||
## [0.1.1] | ||
### Fixed | ||
@@ -14,2 +28,7 @@ | ||
First release. | ||
First release. | ||
[Unreleased]: https://github.com/patrickarlt/leaflet-virtual-grid/compare/v1.0.1...HEAD | ||
[1.0.1]: https://github.com/patrickarlt/leaflet-virtual-grid/compare/v1.0.0...v1.0.1 | ||
[1.0.0]: https://github.com/patrickarlt/leaflet-virtual-grid/compare/v0.1.1...v1.0.0 | ||
[0.1.1]: https://github.com/patrickarlt/leaflet-virtual-grid/compare/v0.1.0...v0.1.1 |
{ | ||
"name": "leaflet-virtual-grid", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A lightweight DOM-less tile layer for Leaflet that can be used to query APIs with bounding boxes or center/radius as opposed to loading tiles.", | ||
@@ -39,2 +39,3 @@ "main": "dist/virtual-grid.js", | ||
"gh-release": "^2.0.2", | ||
"isparta": "^4.0.0", | ||
"rollup": "^0.21.0", | ||
@@ -41,0 +42,0 @@ "semistandard": "^7.0.2", |
# Leaflet Virtual Grid | ||
[![npm version][npm-img]][npm-url] | ||
[![build status][travis-image]][travis-url] | ||
[npm-img]: https://img.shields.io/npm/v/leaflet-virtual-grid.svg?style=flat-square | ||
[npm-url]: https://www.npmjs.com/package/leaflet-virtual-grid | ||
[travis-image]: https://img.shields.io/travis/patrickarlt/leaflet-virtual-grid/master.svg?style=flat-square | ||
[travis-url]: https://travis-ci.org/patrickarlt/leaflet-virtual-grid | ||
You can use `new VirtualGrid` to generate simple, cacheable, grids of `L.LatLngBounds` objects you can use to query APIs. This lets you query APIs for smaller units and space and never make a call data in the same area twice. | ||
@@ -5,0 +13,0 @@ |
@@ -97,9 +97,4 @@ import L from 'leaflet'; | ||
var bounds = this._map.getPixelBounds(); | ||
var zoom = this._map.getZoom(); | ||
var cellSize = this._getCellSize(); | ||
if (zoom > this.options.maxZoom || zoom < this.options.minZoom) { | ||
return; | ||
} | ||
// cell coordinates range for the current view | ||
@@ -106,0 +101,0 @@ var cellBounds = L.bounds( |
Sorry, the diff of this file is not supported yet
132213
16
539
85
13