Commit Graph

6588 Commits

Author SHA1 Message Date
JLuc
7d6155b6f0 docs(Browser): more acurate 'retina' flag explanation (#6203)
See https://github.com/Leaflet/Leaflet/issues/6195#issuecomment-399510164
2018-06-25 12:13:59 +04:00
JLuc
a9f9b14a55 docs(Browser): more acurate 'retina' flag explanation #6203 (#6206)
As per issue https://github.com/Leaflet/Leaflet/issues/6195#issuecomment-399510164
2018-06-25 12:12:43 +04:00
Andrew Cherniavskii
079be526f4
Merge pull request #6199 from ghybs/testGridLayerGraphicalBrowsers
test(GridLayer): fix zoom-in/-out for graphical browsers
2018-06-25 09:44:32 +02:00
McBen
d8aa452144 Canvas: allow reset of dashArray and allow array-type as option (#6200) 2018-06-22 20:14:26 +03:00
ghybs
e54128cbae docs(plugins): add defaulticon-compatibility plugin (#6190)
to Frameworks & built systems section.
Added as first plugin in list, so that developers have less chance missing it, and it is useful to many integrations.
2018-06-22 20:10:57 +03:00
ghybs
d557247d16 style(GridLayerSpec): remove trailing tabs 2018-06-22 12:35:04 +04:00
ghybs
c2d12d0521 test(GridLayer): fix graphical browser zoom out
test on number of pruned tiles during zoom-out in "graphical browsers" (i.e. not PhantomJS) was failing due to incorrect interleaving of rAF and grid.once('load') event listener, not matching the current animation algorithm.
2018-06-22 12:15:22 +04:00
ghybs
5993deb4c8 test(GridLayer): fix graphical browser zoom in
test on number of pruned tiles during zoom-in in "graphical browsers" (i.e. not PhantomJS) was failing due to missing some rAF to let the animation process fully go through and be able to prune the remaining 4 tiles.
2018-06-22 12:09:42 +04:00
Jan Žák
7c33eab7c5 Plugins: Add leaflet-lasso (#6197) 2018-06-22 09:12:41 +02:00
ghybs
8c3eaaf3e8 test(Map): set div width for getBoundsZoom parameter inside, Firefox (#6192)
* test(Map): set div width for getBoundsZoom inside

in particular Firefox has a different default width than PhantomJS, making the result different than the expected one. Wider container => can zoom higher to fit the specified bounds.

* docs(Map): getBoundsZoom add padding

3rd argument docstring.
2018-06-20 12:25:05 +02:00
Sumit Kumar
faa2bd0dac Plugins: update description for Leaflet.pm (#6191) 2018-06-20 09:46:55 +02:00
Patrick Cate
c5712fb9e9 Plugins: Added Vue2Leaflet (#6189) 2018-06-18 01:39:53 +02:00
M.Çağrı Tepebaşılı
0b6e0cd24b Add Leaflet.jsf /java server faces) plugin to the list
added a new plugin to plugins.md
2018-06-07 12:40:23 +02:00
Andrew Cherniavskii
5161140e95
Merge pull request #6164 from tcoupin/master
Plugins: add L.Control.PaintPolygon
2018-05-21 15:16:35 +03:00
Thibault Coupin
9f08a23f7f
Plugins: add L.Control.PaintPolygon 2018-05-20 16:49:56 +02:00
ronikar
24a2512b1b Update plugins.md (#6153) 2018-05-17 10:15:20 +02:00
Roman Zoller
95d6eca24c Plugins: Add Leaflet.TileLayer.Swiss (#6161) 2018-05-17 10:13:33 +02:00
Dave Leaver
00cc6ff119 Clear _resizeRequest when the map is removed (#6160) 2018-05-16 20:55:52 +03:00
Andrew Cherniavskii
fb09dd24c4
Merge pull request #6151 from theel0ja/master
Fix mixed content warnings
2018-05-05 21:28:59 +03:00
Elias Ojala
f07bc77f7f leafletjs.com https 2018-05-04 15:22:36 +03:00
Elias Ojala
60c6fa8a3e placekitten 2018-05-04 15:21:43 +03:00
Elias Ojala
ad785f2cf6 fixed a link 2018-05-04 15:21:36 +03:00
Elias Ojala
74bd6e2933 leaflet.github.com 2018-05-04 15:20:26 +03:00
Elias Ojala
525a98d20e leaflet.github.io 2018-05-04 15:19:57 +03:00
Elias Ojala
3dea761920 leafletjs link 2018-05-04 15:19:15 +03:00
Elias Ojala
ba891024d2 osm link 2018-05-04 15:18:40 +03:00
Elias Ojala
d00a355d6b mapbox link 2018-05-04 15:17:41 +03:00
Elias Ojala
7c6a7b0d6b creativecommons https 2018-05-04 15:17:13 +03:00
Elias Ojala
bd8e8bc4a3 https some gifs 2018-05-04 15:15:50 +03:00
Elias Ojala
684415e3f4 cartocdn https 2018-05-04 15:14:45 +03:00
Elias Ojala
770b88e89b https 2018-05-04 15:14:00 +03:00
Elias Ojala
50d5a0956e http://leafletjs.com/ -> https://leafletjs.com/ 2018-05-04 15:08:47 +03:00
Elias Ojala
08068b77c3 Disqus 2018-05-04 15:08:29 +03:00
Vladimir Agafonkin
a0ca28af29 Create CNAME 2018-05-03 18:19:02 +03:00
Vladimir Agafonkin
4a4326a382 Delete CNAME 2018-05-03 18:18:53 +03:00
Sergej Orlov
aaded0d926 Fixed view bounds calculation in geolocation event handler (#6139) (#6140) 2018-04-27 17:26:44 +02:00
Jan Pieter Waagmeester
bd89edd567 Fix typo in LatLng docstring. (#6138) 2018-04-20 21:12:23 +02:00
Denys Dovhan
0e9797edce Refactor(gitignore): ignore package-lock.json and yarn.lock explicitly (#6127)
https://github.com/Leaflet/Leaflet/pull/6124#issuecomment-379366811
2018-04-10 10:28:11 +04:00
Baku
0b868472a2 Apply #5498 for Polygons too (#6119) 2018-04-06 23:32:07 +03:00
Denys Dovhan
9d12f4185d Add locks and logs to .gitignore. (#6124) 2018-04-06 23:21:37 +03:00
Iván Sánchez Ortega
ac4753cb64
docs: update playground link
fixes #6121
2018-04-06 12:50:07 +02:00
Anton Joy
27989c55dd Fix for memory leak in canvas renderer (#6117) 2018-04-05 15:24:38 +03:00
Supun Praneeth
22d9cfee93 plugins: add Leaflet.bezier (#6114)
* Leaflet.bezier added to  plugin list

This plugin draw a Bézier line between two point with an animated flight object.

* typo
2018-04-03 09:07:53 +02:00
Yasunori Kirimoto
d68708d626 Plugins: add tilelayer.mierune (#6107)
* 📝 Change plugins.md

- 📝 Change plugins.md

* Plugins: mierune Capitalization
2018-03-27 10:02:48 +02:00
elmarquis
8a009fa662 Plugins: Add leaflet.GestureHandling (#6098) 2018-03-19 16:06:16 +01:00
ghybs
fe9e0f2333
Fix(Draggable): compensate for container CSS scale (#6055)
* Test(MapDragSpec): add mouse drag with CSS scaled container

This test is failing as of this commit.

* Fix(Draggable): measure drag compensating for CSS scale

so that the computed offset (i.e. user drag length) is divided by the CSS scale applied on the `_element`'s container. Later on when `Draggable` updates the `_element`'s position, the latter is affected by the CSS scale by the browser.
Added a `getSizedParentNode` function in `DomUtil` in order to automatically retrieve the closest parent node in the DOM hierarchy tree that has a non null size (so that we can compute the scale in `DomEvent.getMousePosition`), without having to specify the parent node explicitly (which is ugly).

* Fix(getMousePosition): getBoundingClientRect is in page scale

therefore it must also be divided by the container scale in order to compute the relative position of the event in the scaled container.

* Test(MarkerDragSpec): add drag with CSS scaled container

this should pass automatically at this commit, thanks to the previous modification of Draggable.

* Debug(map-scaled): add draggable marker

as well as another CSS scaled wrapper, plus some border and padding, and debugging console logs, to make sure the computations of `getMousePosition` are correct (correctly removing the border width, and compensating for CSS scale).

* Docs(getMousePosition): explicitly exclude border

* Docs(DomUtil): add return value of getSizedParentNode

was missing in docstring.

* Feat(DomUtil): add getScale function

so that it can be used by DomEvent.getMousePosition and Draggable.

* Refactor(Draggable): cache container scale

to avoid triggering browser reflow continuously during _onMove, but only on drag start (_onDown).
By compensating for the scale within Draggable instead of delegating to DomEvent.getMousePosition, it also becomes possible to check first for the clickTolerance, so that we prevents user's small movement based on screen, irrespective of rendered scale.

* Test(Map+MarkerDrag): remove scale on initial movement

that is intended to overcome Draggable clickTolerance, since now it is based on screen pixels, irrespective of applied CSS scale on the map.
Thanks to the tolerance in the expected final position, this has no effect on the result of the test, even though the overall drag is now slightly shorter.

* Refactor(DomEvent): use DomUtil.getScale in getMousePosition

to factorize scale computation (also used within Draggable).
2018-03-16 19:46:44 +04:00
Mandy Kong
c49833d882 Plugins: Adding Leaflet-Shades (#6095) 2018-03-15 15:39:20 +01:00
Sumit Kumar
6471228260 plugins: minor leaflet.pm compatibility note (#6094) 2018-03-15 09:29:14 +01:00
haoming
4f80e78528 Plugins: add Leaflet.RoughCanvas (#6093)
Add a new *render* plugin which let users draw vector map in a sketchy, hand-drawn-like, style.
2018-03-14 09:06:36 +01:00
haoming
7f17c6fcfd Fix typo in comments in VideoOverlay.js (#6090)
The example comments are wrong which confuse reader.
2018-03-12 13:53:05 +01:00