Commit Graph

7354 Commits

Author SHA1 Message Date
f45c06a13f 1.9.2 v1.9.2 2022-10-04 17:03:07 +02:00
ccc4a3423a Update changelog for release of v1.9.2 (#8526) 2022-10-04 17:02:13 +02:00
ac8d0bcb44 Fix marker popup location (#8523)
Co-authored-by: Jon Koops <jonkoops@gmail.com>
2022-10-04 17:00:19 +03:00
e61de9acd3 Check if getElement() is undefined before adding focus listener (Canvas) (#8498) 2022-10-01 11:10:14 +02:00
1bf705c21c Remove maxMargin from Bounds.equals doc string (#8500) 2022-10-01 11:27:02 +03:00
fc481fdf61 Drop ESM entrypoint from package (#8493) 2022-09-29 17:57:35 +02:00
822e55765d Disable zoom animation for Line/PolyUtil tests (#8478) 2022-09-29 17:45:38 +02:00
d72645477e 1.9.1 v1.9.1 2022-09-23 11:57:12 +03:00
bd2829c2d3 update changelog for v1.9.1 2022-09-23 11:56:37 +03:00
ffc13ba34d Fix Events.listens for nested propagations (#8457) 2022-09-22 19:43:11 +03:00
01ce43f7cf Update website & docs for v1.9.0 (#8453) 2022-09-22 15:57:03 +02:00
a7e1bbcb77 1.9.0 v1.9.0 2022-09-22 11:44:48 +03:00
708a58a7dd Update changelog for v1.9.0 (#8446) 2022-09-22 00:03:00 +03:00
9d1a841a0f Bump eslint from 8.23.0 to 8.23.1 (#8436)
Bumps [eslint](https://github.com/eslint/eslint) from 8.23.0 to 8.23.1.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.23.0...v8.23.1)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-13 12:49:34 +02:00
b1197f0623 Update Center calculation to work for very small layers too (#8433) 2022-09-09 18:31:04 +03:00
d3c999c10c minor readme/frontpage update (since I'm back in Kyiv) 2022-09-08 11:20:19 +03:00
78369382cf Bump rollup from 2.78.1 to 2.79.0 (#8426)
Bumps [rollup](https://github.com/rollup/rollup) from 2.78.1 to 2.79.0.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.78.1...v2.79.0)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-06 19:33:32 +03:00
1b6bae74f0 Added test cases for Map:latLngToLayerPoint method (#8407) 2022-08-30 13:29:41 +02:00
914a62e48d GitHub Workflows security hardening (#8419) 2022-08-30 12:16:06 +02:00
5e9e3c7490 Fix invalid GeoJSON on unbalanced arrays (#7637)
* Bug Fix for issue 7627

* Add test

Co-authored-by: Florian Bischof <design.falke@gmail.com>
2022-08-28 23:33:22 +03:00
c2324e52e2 Use preferred tile.openstreetmap.org URL (#8418)
Now that tile.openstreetmap.org supports HTTP/2 + HTTP/3 the old (a|b|c).tile.openstreetmap.org is no longer recommended.

Use tile.openstreetmap.org directly is faster and will likely result in a better cache hit ratio.

Signed-off-by: Grant Slater <git@firefishy.com>

Signed-off-by: Grant Slater <git@firefishy.com>
2022-08-28 11:31:45 +02:00
f10b44b3af Add content and latlng set able while initializing (#7783) 2022-08-28 12:19:45 +03:00
c9b157c97f deps bump to test CI 2022-08-28 00:15:02 +03:00
be6c498420 upgrade more deps 2022-08-25 00:07:40 +03:00
494f24c464 Bump rollup from 2.78.0 to 2.78.1
Bumps [rollup](https://github.com/rollup/rollup) from 2.78.0 to 2.78.1.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.78.0...v2.78.1)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-22 22:46:42 +02:00
7398afef59 Bump uglify-js from 3.16.3 to 3.17.0
Bumps [uglify-js](https://github.com/mishoo/UglifyJS) from 3.16.3 to 3.17.0.
- [Release notes](https://github.com/mishoo/UglifyJS/releases)
- [Commits](https://github.com/mishoo/UglifyJS/compare/v3.16.3...v3.17.0)

---
updated-dependencies:
- dependency-name: uglify-js
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-22 22:24:06 +02:00
01f54796fe Bump rollup from 2.77.2 to 2.78.0
Bumps [rollup](https://github.com/rollup/rollup) from 2.77.2 to 2.78.0.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.77.2...v2.78.0)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-15 16:25:23 +02:00
89c223f767 Bump eslint from 8.21.0 to 8.22.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.21.0 to 8.22.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.21.0...v8.22.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-15 16:24:46 +02:00
166fb18ada Implemented test for panTo method of Map (#8390) 2022-08-13 12:39:23 +02:00
96977a1935 Fix 2 step mouse wheel scrolling (#8298)
* Fix double scroll

* Update comment

* Change wheelPxFactor for Mac
2022-08-04 11:31:27 +02:00
383619233c Add test for containerPointToLatLng and latLngToContainerPoint methods (#8384) 2022-08-02 11:02:13 +02:00
1e97a40b78 Use LocalStorage for dialog sessions (#8382)
This change helps avoid friction using the docs site in day-to-day development with Leaflet, while providing the valuable service of presenting the critical Ukrainian message.

Slava Ukraini!
2022-08-01 23:17:53 +02:00
a64f8bff71 Bump eslint from 8.20.0 to 8.21.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.20.0 to 8.21.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.20.0...v8.21.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-01 17:27:11 +02:00
8eed8a2174 Bump rollup from 2.77.0 to 2.77.2
Bumps [rollup](https://github.com/rollup/rollup) from 2.77.0 to 2.77.2.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.77.0...v2.77.2)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-01 17:25:45 +02:00
1253b896d1 Create anchor links of headers (Fix) & Anchor links they are in a collapsed accordion are now expanding (#7780) 2022-07-28 19:37:41 +02:00
c6642d4db6 Bump uglify-js from 3.16.2 to 3.16.3
Bumps [uglify-js](https://github.com/mishoo/UglifyJS) from 3.16.2 to 3.16.3.
- [Release notes](https://github.com/mishoo/UglifyJS/releases)
- [Commits](https://github.com/mishoo/UglifyJS/compare/v3.16.2...v3.16.3)

---
updated-dependencies:
- dependency-name: uglify-js
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-25 15:58:07 +02:00
59c8bf9844 test: add coverage for Layer\_addZoomLimit (#8037)
* test: add coverage for Layer\_addZoomLimit

Resolves #7762

Checks that zoom levels are updated to non-NaN values when
minZoom and maxZoom are set to non-NaN values in one or many
layers that are passed into addZoomLimit.

Checks that min zoom level is updated to NaN when minZoom is
set to NaN in at least one layer that passed into addZoomLimit,
but maxZoom is never set in any layer. Vice versa for when
maxZoom is set to NaN in at least one layer but minZoom is never
set in any layer. Not sure if this is a feature or a bug, so
need to followup with reviewers.

Checks that zoom levels are undefined when minZoom and maxZoom
are both set to NaN in a layer that is passed into addZoomLimit.

* test: add notes to tests showing NaN usage in zoom levels

* Disable test

Co-authored-by: Florian Bischof <design.falke@gmail.com>
2022-07-24 14:44:43 +02:00
519db3d771 Expose ESM entrypoint with Leaflet global (#8329) 2022-07-20 22:18:09 +02:00
40c42e7a17 Additional Map Tests (#8206)
* Initial Commit

- added tests for setZoomAround and setZoom

* Added fitWorld Test

- fitWorld test complete
- Extended setZoomAround tests
- Incorporated lint

* Fixed setZoom Test

- Fixed a unit test in setZoom

* Added setMinZoom and setMaxZoom Tests

- setMinZoom and setMaxZoom tests

* Applied Lint

* Fixed setMaxZoom Test

- Max layer zoom is infinity instead of 0

* Added Getter Tests

- Added tests for getPixelBounds, getSize, getContainer

* Added Getters Tests

- getPixelOrigin and getPixelWorldBounds tests added
- Refactored previous tests

* Fixed getBounds

- Accidently changed test and did not fully convert, changed back to original version

* Added Pane Tests

- Added getPane, getPanes and createPanes tests
- Changed clone test in getSize test

* Added distance Tests

- distance tests added

* Cleaned up Only

- Removed .only

* Added Point Conversion Tests

- Added layerPointToContainerPoint and containerPointToLayerPoint test
- setZoomAround test had demonstrated Point parameter incorrectly

* Fixed Missing Character

- Added # to describe
- Updated condition that can be brittle in setZoomAround

* Removed skips

* Fixed Failing Tests

* Removed .only

Co-authored-by: Florian Bischof <design.falke@gmail.com>
2022-07-18 16:30:28 +02:00
7025c4a952 Bump eslint from 8.19.0 to 8.20.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.19.0 to 8.20.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.19.0...v8.20.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-18 16:17:17 +02:00
4d28272acc Bump rollup from 2.76.0 to 2.77.0
Bumps [rollup](https://github.com/rollup/rollup) from 2.76.0 to 2.77.0.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.76.0...v2.77.0)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-18 16:16:50 +02:00
be4f751b96 Update getCenter() calculation and move it to PolyUtil / LineUtil (#7603) 2022-07-17 22:58:59 +02:00
3b6d5f34af Update information for Leaflet-GeoPackage plugin (#8339) 2022-07-17 19:13:48 +02:00
90efd54f1e Add test for '_containsPoint' method of CircleMarker (#8340) 2022-07-17 19:11:05 +02:00
4105812d59 Replace deprecated eslint-plugin-script-tags (#8331) 2022-07-11 16:20:48 +02:00
ea1d98e8b3 Bump rollup from 2.75.7 to 2.76.0 (#8332)
Bumps [rollup](https://github.com/rollup/rollup) from 2.75.7 to 2.76.0.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.75.7...v2.76.0)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-11 15:30:51 +03:00
7f43299f76 Fix typo in reference-1.6.0.html (#8330) 2022-07-08 19:30:11 +02:00
be871e6f70 Fix wrong assigned parameter while calling map._move over requestAnimFrame (#8328)
Co-authored-by: jiangliuer <jiangliuer@pinduoduo.com>
2022-07-06 13:25:07 +02:00
b277575366 Bump uglify-js from 3.16.1 to 3.16.2
Bumps [uglify-js](https://github.com/mishoo/UglifyJS) from 3.16.1 to 3.16.2.
- [Release notes](https://github.com/mishoo/UglifyJS/releases)
- [Commits](https://github.com/mishoo/UglifyJS/compare/v3.16.1...v3.16.2)

---
updated-dependencies:
- dependency-name: uglify-js
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-04 18:32:05 +02:00
33baa6885b Bump eslint from 8.18.0 to 8.19.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.18.0 to 8.19.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.18.0...v8.19.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-04 18:31:40 +02:00