Commit Graph

6298 Commits

Author SHA1 Message Date
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
MGMsystems
ba7bfb5011 Div icon accept node element as option (#5517)
* Added option to allow DOM elements inside a DIV icon

* Removed white line

* Adapted so that the dom element can be passed with the html option

* Update DivIcon.js

Changed documentation to state HTMLElement
2017-05-22 09:57:21 +02:00
Klaus Stein
165b2ff1c0 Add Easymap to plugin list (#5522)
Does not totally fit in this subsection but I did not want to create a new section for this.
2017-05-22 08:38:11 +02:00
Hinrich
d2c6bed2ff Small typo in PLUGIN-GUIDE.md (#5524)
Fixed a small typo
2017-05-21 23:18:30 +02:00
Víctor Velarde
cdbbfb8de3 Plugins: add Leaflet.CanvasLayer.Field (#5523) 2017-05-21 17:09:12 +02:00
Elijah Robison
78ac6eb624 Plugins: add L.Control.ZoomBar
Added Interactive pan/zoom entry for L.Control.ZoomBar.
2017-05-19 19:20:20 +02:00
Iván Sánchez Ortega
d664bbd493 Plugins: add GLMarkers 2017-05-18 15:14:39 +02:00
Iván Sánchez Ortega
7a068122c7 Turn nonBubblingEvents into a documented boolean option (#4883)
* Turn nonBubblingEvents into a documented boolean option

* Update var names after rebase
2017-05-18 11:14:27 +02:00
Per Liedman
942e1df2b8 Always export window.L; fixes #5489 (#5504) 2017-05-18 10:28:14 +02:00
Stöger Florian D. M
f049129868 ce (#5513) 2017-05-15 09:43:04 +02:00
gokertanrisever
583358c86c Plugins: add Leaflet-ruler 2017-05-12 10:23:19 +02:00
Iván Sánchez Ortega
873d4cab31 Handle edge case of empty bounds on _getBoundsCenterZoom (#5157)
* Handle edge case of empty bounds on _getBoundsCenterZoom

* Unit test for map._getBoundsCenterZoom
2017-05-11 22:33:46 +02:00
ghybs
f677f9c6d2 Feat(Bounds): add new methods for 2 missing corners (#5488)
* Feat(Bounds): add getTopLeft & getBottomRight methods

as suggested in #5475, for consistency with `LatLngBounds` methods which already provide methods for the 4 possible corners.
Also include the docstrings.

* Docs(Bounds): add comments to identify corners

in BoundsSpec.

* Test(Bounds): add tests for existing corner methods

namely getBottomLeft and getTopRight.
Checked that expecting different values make the tests fail.

* Test(Bounds): add spec for 2 new corner methods

namely getTopLeft and getBottomRight.
Closes #5475 together with previous PR #5487.

* Refactor(Bounds): return this.min(max) instead of new Point

as TopLeft corner is tha same as this.min (BottomRight same as this.max).

* Docs(Bounds): add links to this.min(max)

to make it clearer that these methods are just shorthands to already available properties.
Furthermore, it implies that they output those properties directly, making a clue for the app developer that if he/she wants to modify them, they should be cloned before doing so in order to prevent unintentional behaviour.
2017-05-11 22:24:15 +02:00
ghybs
2ff69debc6 Docs(Bounds): change topLeft/bottomRight to corner1/2 (#5487)
as suggested in issue #5475.
The actual relative position of the given corners do not matter for the factory / constructor current functionality: it just determines the min/max coordinate values.
2017-05-11 22:22:00 +02:00
Per Liedman
c7cc70f2a5 Fix link to reference.html; close #5485 2017-05-11 22:10:10 +02:00
Per Liedman
276d6df153 Update copyright banner to the fact that it's in fact 2017 now (#5503) 2017-05-10 10:04:18 +02:00
Noah Veltman
ecc2c680d6 Fixing quick start link in docs root (#5500) 2017-05-05 14:56:08 +02:00
alyhegazy
b6d21653fa replace symlink with redirect (#5493) 2017-05-04 16:36:43 +02:00
Per Liedman
222bc47a0d Handle Polylines with empty array of LatLngs (#5498)
Fixes #5497
2017-05-04 10:05:15 +02:00