7038 Commits

Author SHA1 Message Date
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
Daniel J. Dufour
3716721664
Added GeoRasterLayer Plugin (#6534) 2021-11-23 12:01:18 +01:00
An Tran
ef3e4f0b47
Update plugins.md (#6547)
Added Leaflet GeoSSE plugin to load real time data with server sent events.
2021-11-23 12:01:01 +01:00
Luca Fabbri
ba81536734
Adding leaflet-area-select to the plugin list (#7367) 2021-11-23 12:00:48 +01:00
Ruben Holthuijsen
913e0e99b6
Update plugins.md with my own plugin (#7392) 2021-11-23 12:00:29 +01:00
Damian Czapiewski
dd975a668f
Add leaflet-place-groups-picker to plugins list (#7412) 2021-11-23 12:00:08 +01:00
Stefano Cudini
4a28283078
add new in plugin lists (#7631)
* wrong method name

* add plugin layer json
2021-11-23 11:59:37 +01:00
dependabot[bot]
9f0a6225d4 Bump karma from 6.3.8 to 6.3.9
Bumps [karma](https://github.com/karma-runner/karma) from 6.3.8 to 6.3.9.
- [Release notes](https://github.com/karma-runner/karma/releases)
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md)
- [Commits](https://github.com/karma-runner/karma/compare/v6.3.8...v6.3.9)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-23 11:22:52 +01:00
dependabot[bot]
2488cfc9ca Bump eslint from 8.2.0 to 8.3.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.2.0 to 8.3.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.2.0...v8.3.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-23 11:22:33 +01:00
dependabot[bot]
f1d8644a8a Bump rollup from 2.60.0 to 2.60.1
Bumps [rollup](https://github.com/rollup/rollup) from 2.60.0 to 2.60.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.0...v2.60.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-23 11:22:10 +01:00
Falke Design
a0efd4921f
Fix current error in the maser (SVG width: auto in IE) (#7793)
* Remove width: auto from svg layer

* Lint css

* Replaced with tabs

* Format css
2021-11-22 11:32:04 +02:00
Simon Champion
3466cbba34
Reset width & padding to prevent cascading CSS from breaking image rendering (#6843) 2021-11-16 11:14:06 +02:00
johnd0e
dd1ab61bd1
Fixup #7068 and add test (#7781) 2021-11-16 00:48:08 +02:00
dependabot[bot]
bda4004ef9
Bump rollup from 2.59.0 to 2.60.0 (#7785)
Bumps [rollup](https://github.com/rollup/rollup) from 2.59.0 to 2.60.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.59.0...v2.60.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>
2021-11-16 00:45:52 +02:00
Candid Dauth
b52961aa46
Add Leaflet.HighlightableLayers and Leaflet.DraggableLines plugins to docs (#7437)
* Add Leaflet.HighlightableLayers plugin to docs
* Add Leaflet.DraggableLines plugin to docs
2021-11-15 11:59:27 +03:00
Mateusz Konieczny
a37f0297af
simplify. update description - geojson is popular (#7602) 2021-11-11 16:03:10 +01:00
Philipp Loose
7cb3c0e43b
Tests for L.GeoJSON static functions (#7147) 2021-11-11 17:19:46 +03:00
Vladimir Agafonkin
2c105060a9 add a redirect from /reference-1.7.1.html 2021-11-11 10:33:31 +02:00
Evo Stamatov
b61dad1b51
Make docs headings sticky (#7703)
* make headings sticky

* fix anchors position under the sticky headings
2021-11-11 10:29:50 +02:00
johnd0e
c1e6751f5c
L.Control.Attribution: encapsulate some code from L.Layer (#7764) 2021-11-11 10:14:21 +02:00