Florian Bischof
e9c66955c4
Refactor to PointerEvents ( #9620 )
2025-05-06 21:11:43 +02:00
Simon Legner
9f80640b8f
Add demo for all GeoJSON types ( #9679 )
...
Co-authored-by: Florian Bischof <design.falke@gmail.com>
2025-04-21 21:21:57 +02:00
Simon Legner
93509f310d
Use for...of ( #9653 )
2025-04-20 16:40:53 +02:00
Jon Koops
7ac98758d4
Drop UMD and make ESM the default entrypoint ( #8826 )
...
Signed-off-by: Jon Koops <jonkoops@gmail.com>
Co-authored-by: Florian Bischof <design.falke@gmail.com>
2025-03-17 15:59:00 +01:00
Jon Koops
a359cd1576
Use import maps to load Leaflet in the debug directory ( #8926 )
2023-04-23 16:37:19 +02:00
Jon Koops
f0ca5bc9cf
Convert vector debug pages to ESM ( #8924 )
2023-04-23 01:20:29 +02:00
Iván Sánchez Ortega
bedad7e850
Implement BlanketOverlay as Renderer superclass ( #8611 )
...
Signed-off-by: Iván Sánchez Ortega <ivan@sanchezortega.es>
2023-02-28 20:54:48 +01:00
Zhongxiang Wang
d1016279f3
fix vector drifts when zoomAnimation is false and zooming via flyTo or pinch ( #8794 )
...
Co-authored-by: Florian Bischof <design.falke@gmail.com>
2023-02-02 13:12:08 +02:00
Jon Koops
2daebbb439
Remove Internet Explorer from browser detection ( #8559 )
2022-10-13 11:41:13 +02:00
Grant
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
Florian Bischof
20654cd159
Replace Mapbox with OpenStreetMap ( #7818 )
...
* Replace Mapbox with OpenStreetMap
Replace Mapbox with OpenStreetMap
* Revert Gemfile
* Replace blanks with tabs
* Fix lint
* Replace Mapbox with OSM
* Add OSM Tile Usage Policy link
* typo: productive→production
Co-authored-by: Iván Sánchez Ortega <ivan@sanchezortega.es>
2022-05-27 11:33:15 +03: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
Josh Erb
cd12b94a4d
[docs] correct Mapbox examples' tileSize ( #6995 )
...
* update debug pages
* correct tileSize & zoomOffset for all Mapbox examples
2020-02-14 01:49:03 +01:00
Josh Erb
4a8e55b0c4
[docs] Update Doc Examples to Use Modern Endpoint ( #6905 )
...
* update the first few examples
* Update all legacy Static API urls with modern URLs
* Add missing map??
* oops stray png
* Remove example.html
2019-11-28 08:41:37 +02:00
Roman Zoller
5ffe207921
Use https everywhere for OSM links ( #6082 )
...
* Use https everywhere for OSM tile URLs
Use
https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png
instead of
http://{s}.tile.osm.org/{z}/{x}/{y}.png
http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png
* Use https everywhere for OSM attribution link
Use
https://www.openstreetmap.org/copyright
instead of
http://www.openstreetmap.org/copyright
http://osm.org/copyright
2018-03-12 08:46:20 +01:00
Per Liedman
4bbec02d14
Add license to route
...
Fixes #2721 .
2017-10-26 23:16:20 +02:00
Guillaume P
ac05f68a39
Canvas: call ctx.setLineDash in _fillStroke ( #5454 )
...
* Canvas: call ctx.setLineDash in _fillStroke
This make dashArray working properly for cirles.
fix #5182
* Debug: add dashed circle example
* Debug: add simple example reproducing #5182
2017-04-20 12:41:26 +02:00
Thach Hoang
0d1eae32be
Fix debug examples after rollup ( #5417 )
...
Fix #5373 .
- Remove references to removed file "../../build/deps.js"
- Update leaflet-include.js to point to "../dist/leaflet-src.js"
- Update watch to use the same destination file as rollup (dist/leaflet-src.js)
- Define getRandomLatLng where used
2017-03-28 08:40:48 +02:00
Lyzi Diamond
7391e308cc
rotate access tokens ( #5338 )
2017-02-16 09:44:50 +02:00
Uzerus
cab880d4d8
type attribute not required in HTML5
2017-02-06 20:32:50 +01:00
Per Liedman
4c484462dc
Canvas improvements ( #5115 )
...
* WIP refactor canvas clear
* Fix clearing bounds, remov unnecessary code
* Refactor redraw logic
* Remove flicker on update
* Fix code style
* Add support for layer ordering with bringToFront/bringToBack
* Fix redraw when layer moves
* Add example for moving canvas layers
* Fix code style
* Use layer ordering for mouse events
* Fix removing first or last layer
2016-11-18 15:22:35 +01:00
Per Liedman
957659fcd0
Move attribution option and getAttribution to L.Layer ( #5070 )
...
Close #5051 .
2016-11-03 09:32:56 +01:00
Steve
1a0b08226b
Fix broken vector-simple debug/testbed page
...
`Uncaught TypeError: Cannot read property 'intersects' of undefined`, so rearrange order for an earlier `map.setView()`
2016-08-14 10:20:46 -05:00
Nathan Cahill
425fa13cb4
Various debug fixes ( #4515 )
...
* various debug fixes
* fix mixed spaces and tabs
2016-04-29 12:35:50 +03:00
Per Liedman
4267291527
Initialize canvas dash on init. Check that canvas supports setLineDash.
...
Close #4363 . Close #4351 .
2016-04-02 09:41:59 +02:00
Yohan Boniface
76cb60705f
Switch from L_PREFER_CANVAS to map.options.preferCanvas
2015-07-14 10:27:50 +02:00
Yohan Boniface
50d7121f72
Make _fireDOMEvent accept optional targets
...
In the case of canvas path, we can't add the canvas element itself
as an interactiveTarget, given that it's big like the path bbox, and
thus would make all this bbox target of events (so also clicking
outside of the path itself, the layer would fire click event, for
example)
2015-07-06 13:55:59 +02:00
Patrick Arlt
1c3b1889ec
debug for regular layers
2014-12-29 12:58:23 -08:00
Vladimir Agafonkin
b8897f26fb
instantiate default renderers in map, fix #2523
2014-03-07 14:52:11 +02:00
Steve Kashishian
ed926180d2
whitespace fixes
2014-03-04 11:04:00 -05:00
Steve Kashishian
28c56c4bb0
Remove cloudmade tilesets
2014-03-04 10:54:41 -05:00
Vladimir Agafonkin
be85ff304c
fix Canvas layer redawing
2014-01-03 20:14:24 +02:00
Vladimir Agafonkin
d1bc836b5d
HAPPY NEW YEAR!!!
...
Lets have an awesome year doing amazing stuff together! Cheers my
fellow leafleters!
2014-01-01 02:49:57 +02:00
Vladimir Agafonkin
b2965351e0
ignore openPopup if map not initialized, close #2343
2013-12-31 02:43:56 +02:00
Vladimir Agafonkin
65ae546fa0
make canvas be underneath svg by default
2013-12-18 12:03:23 -05:00
Vladimir Agafonkin
f4f8c06c75
fix adding/removal of vectors and renderers
2013-12-18 12:03:23 -05:00
Vladimir Agafonkin
508a75f7a8
make Circle inherit from CircleMarker and not the other way
2013-12-18 12:03:23 -05:00
Vladimir Agafonkin
33e23a69e7
fix specs for polygon holes
2013-12-18 12:03:22 -05:00
Vladimir Agafonkin
dc5151b81a
fix GeoJSON roundtripping
2013-12-18 12:03:22 -05:00
Vladimir Agafonkin
1e04f5feba
add Circle implementation
2013-12-18 12:03:21 -05:00
Vladimir Agafonkin
6f9d05fc40
implement Canvas events and SVG click-through
2013-12-18 12:03:21 -05:00
Vladimir Agafonkin
48a3c34702
add Path Popup implementation
2013-12-18 12:03:20 -05:00
Vladimir Agafonkin
919b862c15
add MultiPolyline and MultiPolygon implementations
2013-12-18 12:03:20 -05:00
Vladimir Agafonkin
d3426d557b
fix Polygon getBounds and factory
2013-12-18 12:03:20 -05:00
Vladimir Agafonkin
33f4e72cc4
add working Polygon implementation
2013-12-18 12:03:19 -05:00
Vladimir Agafonkin
3c8dd353a8
manage renderer automatically
2013-12-18 12:03:19 -05:00
Vladimir Agafonkin
076255f33f
initial working Path/Polyline implementation
2013-12-18 12:03:19 -05:00
Vladimir Agafonkin
9edf8e0ea3
remove leaflet.ie.css inclusion in all debug pages
2013-11-08 16:44:14 +02:00
danzel
b0c70f96ad
Update TouchZoomEmu with more crazy tests. Useful when debugging touch zoom behaviour
2013-04-15 11:54:43 +12:00
Vladimir Agafonkin
3c13569147
update cloudmade API key on all debug pages
2013-03-22 16:27:07 +02:00