Skip to content

Commit

Permalink
v2.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulLeCam committed Mar 13, 2020
1 parent b573845 commit ac2b220
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v2.6.3 (2020-03-13)

Fixed regression in v2.6.2 handling `maxZoom` and `minZoom` options in `Map` component.

## v2.6.2 (2020-03-12)

- Fixed applying `maxZoom` and `minZoom` options to tile layers.
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-leaflet",
"version": "2.6.2",
"version": "2.6.3",
"description": "React components for Leaflet maps",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down Expand Up @@ -93,7 +93,7 @@
"react": "^16.13.0",
"react-dom": "^16.13.0",
"rimraf": "^3.0.2",
"rollup": "^2.0.5",
"rollup": "^2.0.6",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
Expand Down
6 changes: 5 additions & 1 deletion src/GridLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,17 @@ export default class GridLayer<
}

getOptions(props: Props): Props {
const options = super.getOptions(props)
const options = { ...super.getOptions(props) }
const { map } = props.leaflet
if (map != null) {
// $FlowFixMe: Object spread
if (options.maxZoom == null && map.options.maxZoom != null) {
// $FlowFixMe: Object spread
options.maxZoom = map.options.maxZoom
}
// $FlowFixMe: Object spread
if (options.minZoom == null && map.options.minZoom != null) {
// $FlowFixMe: Object spread
options.minZoom = map.options.minZoom
}
}
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7661,10 +7661,10 @@ rollup-pluginutils@^2.6.0, rollup-pluginutils@^2.8.1:
dependencies:
estree-walker "^0.6.1"

rollup@^2.0.5:
version "2.0.5"
resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.0.5.tgz#55b8c0d62360a095e322ac7425b13ac5a97edcb4"
integrity sha512-bECGz+RYpw3NYCvLnABu3REUROYbnZsfQZA37ekm/KlgKt/fyxBNN4waBnlLwzx4r6jNBs56SbTn7PEgJjw3fQ==
rollup@^2.0.6:
version "2.0.6"
resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.0.6.tgz#865d6bb15a28cff3429ea1dc57236013661cb9de"
integrity sha512-P42IlI6a/bxh52ed8hEXXe44LcHfep2f26OZybMJPN1TTQftibvQEl3CWeOmJrzqGbFxOA000QXDWO9WJaOQpA==
optionalDependencies:
fsevents "~2.1.2"

Expand Down

0 comments on commit ac2b220

Please sign in to comment.