Commit Graph

6500 Commits

Author SHA1 Message Date
ghybs
c0bc8ffe71 Docs(Download): use proper links for CDN's list (#5847)
since they are not parsed by GitHub Markdown when used on Leaflet website.
2017-10-17 17:28:52 +03:00
ghybs
8094d607ec Docs(Download): add CDN alternatives (#5837)
* Docs(download): mention other CDN

so that developers know their possible alternatives and can decide by themselves which option they want to use for their project.
None of the 3 listed options require any work from Leaflet side (as of today) for new releases, they directly pull updated from npm registry.
cdnjs uses a configuration file in their repo to know which files to fetch from npm registry:
https://github.com/cdnjs/cdnjs/blob/master/ajax/libs/leaflet/package.json
In case the `dist/` folder changes, this configuration file requires manual modification (the community may directly send a PR to do so).

* Docs(download): add disclaimer about external CDN services

in order to try avoiding questions and/or complaints in case of CDN unavailability or any other issue.
2017-10-16 12:09:40 +03:00
Andrew
b54c2d4adf Fix TileLayer flyTo test (#5843)
* fix TileLayer flyTo test

* fix linter errors
2017-10-16 09:58:25 +03:00
Andrew
d76e5d0372 fix GridLayer flyTo test (#5846) 2017-10-16 09:57:56 +03:00
Maciej Kus
9084c4a8a3 Docs(imagePath): "absolute path" to "path" (#5835)
This simply removes the word "absolute" from the documentation of Icon.Default.imagePath. This path can be relative or absolute.

e.g. L.Icon.Default.imagePath = 'style/images/'; works just fine for me.
2017-10-11 18:31:45 +03:00
ghybs
5e696a5ba5 Docs(Changelog): fix GitHub URL's to "Leaflet/Leaflet" (#5836)
* Style(CHANGELOG): remove empty bullet point

* Docs(CHANGELOG): replace "leaflet" by "Leaflet" in GitHub URL's

"https://github.com/leaflet/leaflet" (without capitalized first letter) works as URL, but is not recognized by GitHub MarkDown parser (which simplifies URL's by simple "#XXX" style when referring to an issue or PR in the same repository, or "group/repo#XXX" in another repository).
Proper case is "Leaflet/Leaflet" (organization and project have capitalized first letter).
2017-10-11 09:49:53 +02:00
Moritz
45afd2d462 Add Leaflet Swoopy Plugin (#5834)
A plugin for creating customizable swoopy arrow annotations.
2017-10-10 12:44:55 +02:00
Andrew
bb1d94ac7f add space before className (#5830) 2017-10-10 12:43:34 +02:00
Andrew
93be1ae0a7 Use zoom parameter if passed (#5822) 2017-10-09 18:17:51 +02:00
Andrew
748905cbf5 Fix docs redirects (#5824)
* use redirected.html instead of jekyll-redirect-from

* modify redirected.html to preserve url hases

* fix links in zoom-levels example

- use relative links instead of absolute
- remove hardcoded version in lins and refer to latest version docs instead

* fix hash in choropleth example

* fix links in geojson example

 - use relative links instead of absolute

* fix absolute link in quick-start example

* fix link in video-overlay example

* fix link in map-panes example

* fix link in wms example

* fix link in geojson example

* fix relative reference links
2017-10-05 15:34:04 +02:00
Andrew
c5391e3fbb reset body margin to avoid scrollbars (#5823) 2017-10-04 16:33:04 +02:00
Rajesh Sharma
0f3aed37b9 use zoom parameter if passed 2017-10-04 17:49:40 +05:45
mynameisstephen
d2f6a6cdcd Fire 'zoomlevelschange' when calling setMinZoom & setMaxZoom. (#5230)
* Fire 'zoomlevelschange' when calling setMinZoom & setMaxZoom.

* rename variables

* make sure 'zoomlevelschange' won't be fired unnecessarily

* fix enabling zoom control after changing zoom levels

* always fire `zoomlevelschange` if minZoom/maxZoom changed

* remove trailing spaces
2017-10-04 14:02:45 +02:00
Andrew
000f457fcb Fix map styles in "Extending Leaflet" example (#5819)
* fix map height in extending example

* add html and body styles to tutorial_frame

* move js styles to css

* remove unnecessary styles from mobile/example.md
2017-10-04 00:04:01 +02:00
daverayment
11cbfa8095 Update DomPointer.js to revert typo (#5817)
Restore IE-specific pointerType check which was accidentally removed previously. Fixes #5798.
2017-10-03 16:43:12 +02:00
Fabrizio
d9655a1e9a Change Util.formatNum default to 6 decimals (#5492)
* Util.formatNum default to 6

Changed Util.formaNum default to 6 decimails.
Solved 0 decimals bug.
Added tests.
Can be useful for PR #5444

* Changed documentation

Changed documentation to 6 instead of 5
2017-10-02 18:36:59 +02:00
Andrew
78152c9804 Merge pull request #4506 from Leaflet/layer-id-public
Switch to public api for getting the layer id in debug
2017-10-01 19:16:45 +02:00
Andrew
3e3f9e89c4 [LayerGroup] Use eachLayer for iterations over layers (#5809)
* [LayerGroup] use eachLayer method instead of for...in

* [LayerGroup] use eachLayer method in getLayers method

* [LayerGroup] use eachLayer method in onAdd & onRemove methods

* [LayerGroup] invoke method fix

- use `eachLayer` method instead of for...in
- add unit test for `invoke` method

* revert invoke method change
2017-09-30 16:58:10 +03:00
Andrzej
7e49242aa2 use run alias instead of run-script 2017-09-29 17:13:44 +03:00
Andrzej
64825cef8f avoid installing jake globally
Jake will be installed along with other devDependencies, so there is no need to install it one more time
2017-09-29 17:13:44 +03:00
Andrew
899bdd43de Fix zoom when map container is scaled (#5794)
* fix zoom when container is scaled

* add map-scaled debug page
2017-09-29 17:11:14 +03:00
Michael Siadak
2a324b0b94 Add tileerror tests to GridLayer spec (#5805) 2017-09-29 17:04:48 +03:00
iH8
33415fcbab New rollup config signature (#5812)
Adapted rollup configurations to new signature., ironed out some minor
inconsistencies between configurations and some syntax cleanup. Fixes
following warnings when running rollup:

(!) Some options have been renamed
https://gist.github.com/Rich-Harris/d472c50732dab03efeb37472b08a3f32
options.entry is now options.input
options.sourceMap is now options.sourcemap
options.dest is now options.output.file
options.format is now options.output.format
2017-09-29 17:01:24 +03:00
Lois
8a433a2272 Update documentation to change Haversines Formula to Spherical Law of… (#5791)
* Update documentation to change Haversines Formula to Spherical Law of Cosines

* update distance to

* reverse prior change
2017-09-24 12:51:14 +02:00
Arnaud Ferrand
37b9947d5b Fix typo (#5793) 2017-09-21 16:28:21 +02:00
fpopa
e5a3d5ecc3 Correct documentation regarding bringToBack() (#5788) 2017-09-20 14:41:32 +02:00
Alexander Musienko
8ae4689a93 Null ref fix: (#5736)
TypeError: Cannot read property latLngToLayerPoint of null\n    at NewClass.update (http://my.uboro.eu/js/vendor/leaflet-1.2.0.js?t=1503882088:7295:23)\n    at NewClass.setLatLng (http://my.uboro.eu/js/vendor/leaflet-1.2.0.js?t=1503882088:7256:8)\n
2017-09-19 11:46:19 +03:00
Idan Entin
8bd5578860 Fix map not rendering when images has max-height. Fixes #5775 (#5778) 2017-09-19 10:03:21 +03:00
Andrew
7d6046709b Fix TileLayer infinite error loop (#5783)
* fix eslint errors

* fix errorTileUrl comparison

* fix getting wrong attribute
2017-09-19 10:02:34 +03:00
Andrew
ca6025c8bd [VideoOverlay] Fix adding css classes (#5785)
* fix VideoOverlay css classes

* fix eslint errors
2017-09-19 10:01:22 +03:00
CalvinWilliams1012
811cc7cf9c Comment and changed back width, as I read it wrong 2017-09-12 08:52:06 +03:00
CalvinWilliams1012
b8c1e60424 Changed some examples from viewport length and width to percent. 2017-09-12 08:52:06 +03:00
Per Liedman
f90a55ec20 Adjust details 2017-09-11 20:01:40 +03:00
CalvinWilliams1012
5d0f7ae438 Changed zoom-level documentation to reflect function properly. 2017-09-11 20:01:40 +03:00
sybri
29b64940b8 Add plugins SpeechBubble (#5768)
* Add plugins

* Correct link
2017-09-11 13:42:34 +02:00
Roberto Soares
79e8bf724c Add leaflet-offline plugin to the list (#5722) 2017-09-01 17:23:03 +02:00
Calvin Williams
b0e216aa54 Updated documentation for pad method to accurately reflect the function. (#5748) 2017-09-01 00:27:20 +02:00
Vladimir Agafonkin
88dd22cfe8 upgrade deps, fix indenting (#5743) 2017-08-31 08:58:42 +02:00
Sumit Kumar
4e8b30a379 updated features and added demo link (#5742) 2017-08-30 16:06:33 +02:00
Guillaume AMAT
6f1e9ce3d8 plugins: Replace the old Overpass plugin by its fork (#5737) 2017-08-28 22:10:20 +02:00
Michael Fenwick
0e36b948cd Feature: optionally allow popups to not close on pressing Esc (#5730)
* add test for disabled popup ESC key functionality

* add closeOnEscapeKey default option for popup

* add ESC key condition to prevent map.closePopup

* fix variable indentation

* revert unnecessary mapPopup variable back to map._popup

* add 4 spaces of indentation to variables
2017-08-28 16:11:54 +02:00
Per Liedman
a5e03adb45 Store return value from wrapLatLngBounds (#5715)
Fixes #5536.
2017-08-28 11:40:47 +03:00
Astrid
14a2e94c9d Change two links to the GeoJSON Spec, because current links refer to an obsolete version. (#5725) 2017-08-28 11:40:11 +03:00
Dzwiedzminator
9b73d0da76 Update VideoOverlay.js (#5731)
* Update VideoOverlay.js

wrong keyword uses - className should be used instead
found this when testing new leaflet on ie8 - map doesn't load because of this

* Use DomUtil.addClass instead of modifying el.className
2017-08-28 11:38:56 +03:00
Andris Nolendorfs
819f1722af Docstrings: Add event type DomEvent.stop (#5733) 2017-08-25 10:01:03 +02:00
Javier Jimenez Shaw
cbb89c1300 plugins: add Leaflet.Control.Layers.Tree (#5721) 2017-08-18 15:37:56 +02:00
James Collins
7730948cab Cancel http requests for outdated tiles (#5615)
* Cancel http requets for outdated tiles

* Don't cancel requests on stock android (see #137)
2017-08-15 17:46:28 +02:00
Per Liedman
c78e5583e0 Use same condition for adding as well as removing double tap listener (#5598)
Fixes #5588
2017-08-15 14:53:39 +02:00
Per Liedman
fe3a340f1c Remove warning alert in watch bundle (#5714) 2017-08-15 11:39:53 +02:00
Miguel Magalhães
d54ec5f04a Update LICENSE (#5713)
Update year range to 2017
2017-08-15 07:59:14 +02:00