7057 Commits

Author SHA1 Message Date
Jon Koops
d86ad49d4a
Publish package to NPM when pushing tag (#7854) 2021-12-13 16:14:41 +02:00
dependabot[bot]
982042ccd0 Bump uglify-js from 3.14.4 to 3.14.5
Bumps [uglify-js](https://github.com/mishoo/UglifyJS) from 3.14.4 to 3.14.5.
- [Release notes](https://github.com/mishoo/UglifyJS/releases)
- [Commits](https://github.com/mishoo/UglifyJS/compare/v3.14.4...v3.14.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-13 11:27:12 +01:00
dependabot[bot]
dc17bd848f Bump rollup from 2.60.2 to 2.61.1
Bumps [rollup](https://github.com/rollup/rollup) from 2.60.2 to 2.61.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.60.2...v2.61.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-13 11:23:44 +01:00
dependabot[bot]
08b39b0a8c Bump eslint from 8.4.0 to 8.4.1
Bumps [eslint](https://github.com/eslint/eslint) from 8.4.0 to 8.4.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.4.0...v8.4.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-13 11:09:55 +01:00
Falke Design
009748a0ca
Change http to https of https://leafletjs.com (#7857) 2021-12-12 14:34:38 +01:00
Robert Linder
a9d7c4fe7d
Add print styles to prevent printers from removing background-images in controls (#7851)
* Add print styles (prevent printers from removing background-images in controls)

* Update leaflet.css
2021-12-10 19:01:40 +02:00
Robert Linder
acffb7edf8
Set role=button on the Layer control (#7850) 2021-12-10 18:59:16 +02:00
Falke Design
afe38e09d9
Add getCenter to ImageOverlay (#7848) 2021-12-10 18:58:57 +02:00
Falke Design
06f76d4c53
Added missing tests to index.html (#7845) 2021-12-10 18:58:26 +02:00
Jon Koops
f3f28c3188
Upload files to AWS even if the file-size is the same (#7853) 2021-12-10 18:41:56 +02:00
dependabot[bot]
e3719a317a
Bump uglify-js from 3.14.3 to 3.14.4 (#7836)
Bumps [uglify-js](https://github.com/mishoo/UglifyJS) from 3.14.3 to 3.14.4.
- [Release notes](https://github.com/mishoo/UglifyJS/releases)
- [Commits](https://github.com/mishoo/UglifyJS/compare/v3.14.3...v3.14.4)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-06 14:40:20 +02:00
dependabot[bot]
1e1987e1ba
Bump eslint from 8.3.0 to 8.4.0 (#7837)
Bumps [eslint](https://github.com/eslint/eslint) from 8.3.0 to 8.4.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.3.0...v8.4.0)

---
updated-dependencies:
- dependency-name: eslint
  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>
2021-12-06 14:40:10 +02:00
dependabot[bot]
7dcc3de716
Bump rollup from 2.60.1 to 2.60.2 (#7838)
Bumps [rollup](https://github.com/rollup/rollup) from 2.60.1 to 2.60.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.60.1...v2.60.2)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-06 14:39:53 +02:00
johnd0e
80b268525e
Better icon image path detection (#7092) 2021-12-05 12:32:19 +02:00
b_b
a1342a15e9
add demo url for the plugin (#7833)
no need to comment :p
2021-12-03 21:33:12 +02:00
b_b
fc9c716457
Update plugins compat & demos (#7834)
* add demo url for leaflet-providers

* update Leaflet.Routing compat

- demo page use leaflet 0.7 https://github.com/Turistforeningen/leaflet-routing/blob/gh-pages/index.html#L34 and it's broken http://turistforeningen.github.io/leaflet-routing/examples/osm.html
- project seems unmaintained, last commit from 2015 + https://github.com/Turistforeningen/leaflet-routing/issues/50

* add demo url for Leaflet.Locate

* add demo for Leaflet Control Compass

* add demo for Leaflet.AccuratePosition + update compat info

- demo use leaflet 0.7 https://github.com/M165437/Leaflet.AccuratePosition/blob/gh-pages/index.html#L11
- last commit from 2016

* update compat for L.LocationShare

- demo page use leaflet 0.7 https://github.com/CliffCloud/Leaflet.LocationShare/blob/master/index.html#L11
- index.html file provided by the repo doesn't work when using leaflet 1.7
2021-12-03 20:17:15 +01:00
b_b
a6d6d512ac
leaflet.zoomfs compatibility (#7832)
I don't think this plugin is compatible with Leaflet v1 :\

- the demo use Leaflet 0.5.1 https://github.com/elidupuis/leaflet.zoomfs/blob/master/index.html#L12
- the last commit on the repo was made 9 years ago
- the online demo page https://elidupuis.github.com/leaflet.zoomfs returns a 404 error
2021-12-03 19:37:27 +01:00
Jon Koops
a921fdd954
Remove all references of Bower (#7831) 2021-12-03 14:15:08 +02:00
Vladimir Agafonkin
8531ede662 bump license formatting hoping that GH picks it up now 2021-12-03 14:13:02 +02:00
Alexandria Quelle
d00a8b28ae
Added clarification (#7819)
Added a sentence to indicate when the code examples switch from HTML and CSS to JS for clarity
2021-12-02 21:32:14 +02:00
Falke Design
a340c086c2
Break the reference to the options of the Class prototype (#7459)
* Break the reference to the options of the Class prototype

* Refactor test and .setOptions

* Revert: Merge https://github.com/Leaflet/Leaflet into class_options
2021-12-02 20:02:49 +02:00
Falke Design
30d91b1769
Fix Bug: permanent & sticky tooltip (#7563)
* Fixes bug: if tooltip is sticky and permanent it was not following the mouse

* Add tests

* Use fastframe

* fix whitespace

Co-authored-by: Vladimir Agafonkin <agafonkin@gmail.com>
2021-12-02 20:01:17 +02:00
vcoppe
4b2946c205
Correct condition to add zoom limits for Layer (#7609) 2021-12-02 19:59:47 +02:00
Falke Design
e7d5a3725f
Locate - locationfound: Add check if map container has leaflet_id / is existing (#7813)
* Add check if map container has the leaflet_id

* Fix lint

* Use private _container

* Add test for _handleGeolocationError

* Update test text

* Change text of test
2021-12-02 19:59:14 +02:00
Falke Design
e8b87eacf5
bindTooltip should unbind existent tooltip (#7633)
* Fix overlapping permanent tooltip on bindTooltip

Fix overlapping permanent tooltip on bindTooltip

* Update test

* Fix lint errors

* Using sinon.spy on a function of layer

* unwrap spy in the test

* move spy restore
2021-12-02 19:51:38 +02:00
bozdoz
2476975c65
makes L.Browser mutable (#7335)
* makes L.Browser mutable

* reverts fix to tilelayer min/maxzoom detectRetina issue

Co-authored-by: bozdoz <howaboutben@gmail.com>
Co-authored-by: Vladimir Agafonkin <agafonkin@gmail.com>
2021-12-02 19:45:11 +02:00
shevekk
39c7ea64da
Create leaflet-coloricon.md (#7812) 2021-12-01 16:03:13 +01:00
Falke Design
27f49645ef
Update zoom buttons documentation text (#7815) 2021-11-30 16:42:26 +01:00
Vladimir Agafonkin
80279dd98b
Lint examples (#7827)
* lint examples

* examples lint fixes

* more lint fixes

* fixes

* final fixes
2021-11-29 16:31:54 +02:00
Vladimir Agafonkin
31259a9d25 revert linting examples (accidentally pushed to master) 2021-11-29 15:58:54 +02:00
Vladimir Agafonkin
326211d5d4 add linting to examples (WIP) 2021-11-29 15:56:50 +02:00
johnd0e
0a61e9065b
Tests: simplify .near and .nearLatlng usage (#7820) 2021-11-27 13:08:04 +02:00
Falke Design
1e7f27331a
Simplifiy examples (#7816)
* Replace mymap with map

* Updated quick-start - added variables

* Add variable names

Add variable names

* Replace blanks with tabs
2021-11-26 22:17:11 +02:00
Andrew Cherniavskii
2e8638761c
[GridLayer] redraw tiles properly after changing maxNativeZoom (#6443) 2021-11-26 17:39:17 +02:00
johnd0e
05fa5802a6
New TapHold handler instead of legacy Tap (#7026)
* Replace legacy over-functional Tap handler with much simpler TapHold handler

as currently it is needed only for single purpose: emulate `contextmenu` on iOS.

* `tapHold` map option can be forced now

Anyway, this option is not meant to be explicit,
any overriding is useful for debug purposes only.

* Remove Map.Tap

* Get rid of deprecated initMouseEvent

Use MouseEvent constructor.

Note: some properties are commented out, as they may vary between browsers.

Ref:
- https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent
- https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/MouseEvent

Compatibility:
- https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/MouseEvent#browser_compatibility

Some legacy browsers lacks support, but here we care only about iOS Safari.
(Anyway it can be solved with polyfill)

* Add tests for Map.TapHold.js
2021-11-26 13:38:24 +02:00
johnd0e
38c0c55ff0
Fix #7439 for mousemove (#7809)
We need pass event to map when canvas does not have targets
2021-11-26 13:07:16 +02:00
daverayment
18389fbe70
Improve panInside documentation (#7397)
* Improve panInside doc and add arg check

* Removed unwanted parameter check.

* Throw when padding value is not a point, plus test

* New padding options docs and error checking

* Update src/map/Map.js

Co-authored-by: johnd0e <johnd0e@mail.ua>

* Error checking for fitBounds and flyToBounds

* Separate padding options tests

* Comment update on padding tests

* Revert padding checks and associated tests

* Remove extra blank line

Co-authored-by: johnd0e <johnd0e@mail.ua>
Co-authored-by: Vladimir Agafonkin <agafonkin@gmail.com>
2021-11-26 11:23:07 +02:00
Vladimir Agafonkin
25fce16847 ignore built docs when running eslint 2021-11-26 11:20:47 +02:00
Eric Hippler
8fbb149371
Update Renderer documentation to clarify tolerance option Canvas only (#7515)
* update renderer doc to clarify tolerance option Canvas only

* Revert "update renderer doc to clarify tolerance option Canvas only"

This reverts commit 6d9e82fc20d2e5eb4c39ed1e8cbecf0e09dd58d6.

* moved tolerance option from Render to Canvas

* Refactor _clickTolerance

Co-authored-by: johnd0e <johnd0e@mail.ua>

Co-authored-by: johnd0e <johnd0e@mail.ua>
2021-11-26 11:14:30 +02:00
Olivier
649eaf37e5
Add documentation for Event Listens Propagate argument. Fixes Leaflet/Leaflet#6912 (#7103) 2021-11-26 10:38:03 +02:00
Falke Design
6db8d22b61
Add aria-hidden to the +/- characters of zoom controls (#7795)
* Add aria-hidden to zoom controls #7433

* Fix lint

* Move aria-hidden to the `zoomIn\OutText`

* Update src/control/Control.Zoom.js

Co-authored-by: Vladimir Agafonkin <agafonkin@gmail.com>
2021-11-26 00:00:07 +02:00
Falke Design
4dadf840af
Fix Popup keepInView if the map needs to panned over a long distance (#7792)
* Fix keepInView recursion #5035

* Fix test

Co-authored-by: Vladimir Agafonkin <agafonkin@gmail.com>
2021-11-25 20:34:19 +02:00
Falke Design
1180e7e8c2
Accessibility popup close button (#7794)
* Change color of close button #7539

* Add role=button and aria-label #7399

* Add aria-hidden to `times` / `x` #7472

* remove bold on close button

Co-authored-by: Vladimir Agafonkin <agafonkin@gmail.com>
2021-11-25 19:50:18 +02:00
Falke Design
c6c82f07c5
Add keepInView test (#7790) 2021-11-25 19:25:43 +02:00
Chandra Kiran G
2eec1985f5
Add fallbacks to font-size (#7800) 2021-11-25 19:19:27 +02:00
Falke Design
842dd30cac
Remove leaflet-include.js (#7776)
* Remove not necessary leaflet-include.js

* Remove not necessary leaflet-include.js & line ending
2021-11-25 19:19:15 +02:00
Falke Design
8eb9ac2461
Converted Plugins.md to single files (jekyll) (#7805)
* WIP: Minimal jekyll setup for handling the plugins webpage in a data-driven manner.

* Docs: Jekyll collections config, whitespace

* Add plugins

* Remove special chars from names and remove default value from compatible-v0

* Push new plugin files

* Rename to plugins.md

* Update Plugins

* Update links in plugins

* Update Links

* Move plugins into category folders

* Add `template.md` and update PLUGIN-GUIDE.md

* PR #6307

* PR #6971

* PR #7043

* PR #7130

* Fix Url #7442

* PR #7513

* Update Author #7554

* PR #7590

* PR #7640

* PR #7760

* Update template.md

Co-authored-by: Iván Sánchez Ortega <ivan@sanchezortega.es>
2021-11-25 15:54:50 +01:00
johnd0e
5eca46962d
add/removePointerListener: tolerate wrong event names (#7808) 2021-11-25 16:47:35 +02:00
williamlow
f4d8f1083b
Update plugins.md (Leaflet.Signposts) (#7786)
Submitting new Leaflet plugin under User Interface: Leaflet.Signposts
2021-11-23 12:46:39 +01:00
Jon Koops
0b603eaf83
Add Leaflet.NonTiledLayers to plugins (#7802) 2021-11-23 12:04:23 +01:00