Commit Graph

6567 Commits

Author SHA1 Message Date
Bogdan Chadkin
b343cf7a58 Filter published files on npm (#5626)
* Filter published files on npm

For now not gzipped leaflet package is 23mb. There's weird 4mb file `.goutputstream-N6HL8X` and a lot other stuff which increases node_modules size. `files` field can fix this with specified whitelist.

* Remove npmignore
2017-07-18 17:25:28 +03:00
Brendan Ward
e446e45ea5 Add plugin: Leaflet.UTFGrid (#5639)
* Add Leaflet.UTFGrid

* fix demo link
2017-07-18 17:23:58 +03:00
ghybs
b5adde433e Merge pull request #5631 from thachhoang/debug-videooverlay
Remove reference to deps.js in L.VideoOverlay debug example
2017-07-15 06:37:48 +04:00
Thach Hoang
96fd15450b Remove reference to deps.js in L.VideoOverlay debug example 2017-07-14 21:46:42 -04:00
Kaveh
29d49bca1b Adds Leaflet.HtmlLegend to docs/plugins.md (#5628)
* Adds Leaflet.HtmlLegend to docs/plugins.md

* Adds link to demo.
2017-07-14 12:26:15 +02:00
Grigory Golikov
4ba642be78 Add Leaflet.River to plugins list (#5616) 2017-07-09 20:26:10 +02:00
Colby Rogness
caab168894 docs(quick-start): add warning to place CSS before JS to quick start example (#5610) (#5614) 2017-07-09 11:00:30 +02:00
PPete
900e4a740d new Demo-Urls of plugin (#5612)
* Update plugins.md

* Update plugins.md
2017-07-07 23:51:35 +02:00
Sven
170bdc8075 GeoJSON remark about the reversed coords (#5604)
* GeoJSON remark about the reversed coords

oh man, that took me a while of debugging

* Reword sentence on coordinate axis order somewhat
2017-07-05 09:34:14 +02:00
Tim
54a87e0902 addTo() can be called with a map or layer group. (#5600) 2017-07-03 11:18:02 +02:00
Tim
44122b632e LayerGroup parameter is optional (#5599) 2017-07-03 11:10:14 +02:00
jelhan
7a73e1d140 Fix(DomEvent): DomEvent.off should return this (#5601)
Was broken by 14c5f1602c.
2017-07-03 10:47:11 +02:00
ghybs
241fb56701 Docstring(GridLayer): more explicit updateWhenIdle option (#5577)
* Docs(GridLayer): more explicit updateWhenIdle option

description, because "for better performance" is quite generic and might be understood in very different manners depending on the reader's point of view.

* Docs(GridLayer): improve updateWhenIdle option explanation

as per Perliedman's proposal.
2017-06-30 00:28:03 +02:00
Arne Schubert
748f65f119 Prevent using functions from the global scope with es6 (#5596)
* Prevent using functions from the global scope with es6

* check against static _dragging as requested by perliedman
2017-06-29 22:29:03 +02:00
Egon Steiner
d30f7aad35 return this instead of addOne in disableScrollPropagation (#5595) 2017-06-29 11:55:16 +02:00
cyrilf
0688693d3b Whitelist the jekyll-redirect-from (#5592) 2017-06-28 16:34:40 +02:00
ghybs
e02cb22bb8 Docs(ref-103): attempt to fix GitHub 404 error (#5587)
on reference-1.0.3.html page, for unknown reason?
See https://github.com/Leaflet/Leaflet/issues/5585
Using a dummy modification on the page, hopefully it might re-trigger a proper Jekyll build on that page?
2017-06-27 20:38:09 +02:00
Iván Sánchez Ortega
11d716f096 Fix headers for 1.1.0 docs 2017-06-27 15:03:58 +02:00
Iván Sánchez Ortega
90ac1a2077 Update some links to the 1.1.0 docs (#5586) 2017-06-27 15:00:25 +02:00
Per Liedman
28617f5b9b Update stable download for 1.1.0 2017-06-27 14:36:38 +02:00
ghybs
4a0bfb6e5e Docs(Popup+Tooltip): fix typo in bindPopup & bindTooltip (#5578)
methods description.
2017-06-27 14:17:24 +02:00
Per Liedman
f59d20d583 Fix post date 2017-06-27 13:46:43 +02:00
Per Liedman
a05c69135d Update news on index page 2017-06-27 13:45:34 +02:00
Per Liedman
ca540211e3 Blog post about 1.1.0 (#5581)
* Bump version to 1.1.0

* Blog post about 1.1.0

* Fix description

* Fix punctuation

* Update integrity hashes

* Set release date for 1.1.0

* Add reference for 1.1.0

* Point reference.html to docs for 1.1.0
2017-06-27 13:39:25 +02:00
Iván Sánchez Ortega
3fae3befd3 Actually assign the replaced path for the default icon (#5580) 2017-06-26 12:03:51 +02:00
Per Liedman
35e7c4b7f7 Changelog for 1.1.0 (#5518)
* WIP changelog for 1.1.0

* Fixup: missing parenthesis

* Fix broken issue links

* Fix links for 5302/5303

* Typos and missing refs in 1.1.0 changelog

* Update with changes since 2017-05-19

* Add changes since 2017-06-02
2017-06-26 11:10:04 +02:00
ghybs
d6fc47d70e Fix(DivIcon): revert #5517 to avoid appending a single node instead of generating content (#5574)
* Docs(Marker): explain checks for re-using icon element

when the marker is modified with an icon of the same type (i.e. an image icon with an image icon, or a DivIcon with a DivIcon), or checks for NOT re-using the icon element when modifying with an icon of a different type (i.e. an image icon with a DivIcon, or the reverse).

* Revert "Div icon accept node element as option (#5517)"

This reverts commit ba7bfb5011.

Conflicts:
	spec/suites/layer/marker/MarkerSpec.js
2017-06-25 14:11:57 +02:00
Per Liedman
a3ec8047b3 Add className option for ImageOverlay (#5555) 2017-06-22 16:25:15 +02:00
ghybs
6bfa764cb0 Docstrings(Map/Grid+TileLayer): improve minZoom and maxZoom explanations (#5573)
* Docs(Map/Grid+TileLayer): improve minZoom and maxZoom explanations

so that it is more explicit how Map's options may get automatically computed from its Grid/Tile layers, and what is the exact effect of these options on Grid/Tile layers.

* Docs(Map/Grid+TileLayer): use "inclusive"

instead of "included".
https://en.wiktionary.org/wiki/inclusive
2017-06-22 09:14:32 +02:00
Iván Sánchez Ortega
90a8d88460 Tutorials: rewrite the paragraph about the mapbox map IDs, hopefully it reads easier now. (#5572) 2017-06-21 12:36:12 +02:00
Raymond Berger
bbd74eda12 Docstrincs: bad link in Control.Layers.js (#5568)
Fixed link from http://leafletjs.com/examples/layers-control.html to http://leafletjs.com/examples/layers-control/
See:
https://github.com/Leaflet/Leaflet/issues/5567#issuecomment-309739782
2017-06-20 14:52:02 +02:00
Stuart Matthews
3f68479e3c Add Leaflet.NonTiledLayer.WCS to plugins.md (#5564)
* Add Leaflet.NonTiledLayer.WCS to plugins.md

* Typo

* Typo
2017-06-16 12:49:03 +02:00
Stuart Matthews
eff87f871c Plugins: Add leaflet-geotiff (#5563) 2017-06-16 12:48:14 +02:00
Manuel Baclet
4cb2be6380 Update demo link (and make it generic) (#5559) 2017-06-13 11:26:31 +02:00
Jacob Wasilkowski
cdc20a3d84 Added Leaflet.Canvas-Flowmap-Layer to plugins list (#5474)
* added Leaflet.Canvas-Flowmap-Layer

to plugin docs in DataViz section

* Update plugins.md
2017-06-10 16:03:40 +02:00
Per Liedman
2fee08b234 Icon doesn't really inherit from Layer 2017-06-08 15:18:08 +02:00
Jon
162276e8fe Add UK Ordinance Survey grid squares plugin (#5530)
* Add UK Ordinance Survey grid squares plugin

* Update plugins.md

Change link to repo not readme file
2017-06-05 10:45:25 +02:00
Damian Moore
60e1965e33 Use minus character instead of hyphen in the zoom control (#5501)
* Using proper minus character in the zoom control which means CSS workaround isn't needed

* Using HTML escaping of unicode minus character for added browser support
2017-06-04 12:56:23 +02:00
Manuel Baclet
652946947d Plugins: Add a demo link to PixiOverlay (#5547) 2017-06-02 13:05:02 +02:00
Manuel Baclet
81c2724288 Plugins: Add Leaflet.PixiOverlay (#5546) 2017-06-02 12:32:30 +02:00
Per Liedman
b23d83f464 Don't turn enter keypress into clicks on map (#5507)
* Don't turn enter keypress into clicks on map

But still preserve functionality to open marker's popup through
enter keypress when focused.

Fixes #5499.

* Clean code

Thanks @egoroof

* Change name of keypress handler to _onKeyPress

* Add unit test
2017-06-02 11:18:46 +02:00
Stephen Ham
d78dc21209 Update plugins.md (#5545)
Fixed grammar & capitalization errors on line #3803 to "not required by all Leaflet users" from "not required by all of Leaflet users" and to "JavaScript" from "javascript".
2017-06-02 10:46:07 +02:00
Chris Williams
0b9464f017 Fixes #5534 by adding a check for null. (#5535) 2017-06-01 17:20:08 +02:00
iZucken
da2c8ef2db Fix for issue #5116 (#5544)
* Fix for issue #5116

As this filters out custom inputs created from property names (supposedly using innerHTML), they still will become unusable whenever _update() is fired on control.
I believe that this is a different issue coming from design of a module.

* Followup fix for #5116
2017-06-01 16:26:19 +02:00
Matt Grande
1120c46ed9 Add precision parameter to all toGeoJSON functions (#5444)
* Add precision parameter to all toGeoJSON functions

* Replace usage of toPrecision with Utils.formatNum

* Always default to six decimal places

* Fix docs

* Allow precision of 0
2017-05-31 14:06:58 +02:00
Javier Jimenez Shaw
4f5fef2a56 docstrings: Typo in Projection.LonLat.js (#5532) 2017-05-26 09:44:14 +02:00
ghybs
f66d13976a Docs(Marker): modify icon option description (#5529)
* Docs(Marker): modify icon option description

To explain that a _common_ / generic instance of `L.Icon.Default` is used, instead of leaving room to think that a _new instance_ of `L.Icon.Default` is created for every Marker without specified `icon` option.

See https://github.com/Leaflet/Leaflet.markercluster/issues/786#issuecomment-302893446

* Docs(Marker): replace icon class by instance

it actually needs a proper _instance_ of `L.Icon`, not a "class".
2017-05-24 11:03:00 +02:00
Igor Vladyka
7fef7964b8 Plugins: Added L.Browser.Print (#5526) 2017-05-23 11:58:43 +02:00
Hinrich
fca7f71aad Plugins: Add Leaflet.Tilelayer.Colorizr (#5525) 2017-05-22 13:54:16 +02:00
john gravois
bcaa716f16 dont new up layerGroup in live sample (#5521) 2017-05-22 12:34:53 +02:00