Go to file
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
build Update copyright banner to the fact that it's in fact 2017 now (#5503) 2017-05-10 10:04:18 +02:00
debug Canvas: call ctx.setLineDash in _fillStroke (#5454) 2017-04-20 12:41:26 +02:00
dist Update toolbar inner border radius (#5361) 2017-02-27 16:42:16 +01:00
docs Fix link to reference.html; close #5485 2017-05-11 22:10:10 +02:00
spec Feat(Bounds): add new methods for 2 missing corners (#5488) 2017-05-11 22:24:15 +02:00
src Feat(Bounds): add new methods for 2 missing corners (#5488) 2017-05-11 22:24:15 +02:00
.gitignore Merge branch 'gh-pages' into master-docs 2016-08-18 11:27:28 +02:00
.npmignore tag npm publish with beta 2015-10-14 18:28:31 +03:00
.travis.yml Tweak TravisCI config 2016-09-26 14:23:56 +02:00
bower.json ES6 modules & Rollup (#4989) 2017-01-30 11:35:16 +01:00
CHANGELOG.md Changelog for 1.0.3, version bump. (#5274) 2017-01-23 12:16:07 +01:00
CONTRIBUTING.md Add other h2 headers to ToC (#5448) 2017-04-12 11:12:41 +02:00
FAQ.md Correct Here Maps URL (#5482) 2017-04-26 16:37:15 +02:00
ISSUE_TEMPLATE.md Suggest stackoverflow or gis stackexchange for asking questions 2017-04-03 15:05:01 +02:00
Jakefile.js ES6 modules & Rollup (#4989) 2017-01-30 11:35:16 +01:00
LICENSE Update year range to 2016 2016-01-16 07:42:01 +05:30
package.json Add subresource integrity information & scripts (#5468) 2017-04-19 14:56:14 +02:00
PLUGIN-GUIDE.md Docs: peerDependencies in plugins guide (#5142) 2016-11-24 12:19:48 +01:00
README.md Update README.md: Leaflet 1.0.0 weights 37KiB, not 33KiB 2016-09-29 12:46:46 +02:00

Leaflet

Leaflet is the leading open-source JavaScript library for mobile-friendly interactive maps. Weighing just about 37 KB of gzipped JS code, it has all the mapping features most developers ever need.

Leaflet is designed with simplicity, performance and usability in mind. It works efficiently across all major desktop and mobile platforms out of the box, taking advantage of HTML5 and CSS3 on modern browsers while being accessible on older ones too. It can be extended with a huge amount of plugins, has a beautiful, easy to use and well-documented API and a simple, readable source code that is a joy to contribute to.

For more info, docs and tutorials, check out the official website.
For Leaflet downloads (including the built master version), check out the download page.

We're happy to meet new contributors. If you want to get involved with Leaflet development, check out the contribution guide. Let's make the best mapping library that will ever exist, and push the limits of what's possible with online maps!

Build Status