Commit Graph

6417 Commits

Author SHA1 Message Date
Per Liedman
fb613bcaed Clarify that any option keys can be used
Fixes #4001.
2017-10-26 22:32:01 +02:00
Per Liedman
d9846d106b Round pan offset towards zero (#5858)
* Add Point.trunc/_trunc

* Truncate pan offset instead of flooring

Fixes #5821
2017-10-26 15:35:35 +03:00
Andrew
f83b5347f5 skipIfNotTouch instead of overriding Browser.touch (#5869) 2017-10-26 15:34:31 +03:00
Andrew
b5cc500de6 update happen to 0.3.2 - fixes Popup tests in FF and Chrome (#5872) 2017-10-26 09:06:13 +02:00
iH8
1681cca369 Redirect to Plunker, Codepen and JSFiddle (#5868)
* Redirect to Plunker, Codepen and JSFiddle

Redirects to Plunker, Codepen or JSFiddle with corresponding template.
For usage in issuetemplate, issues, StackOverflow etc.
Usage Examples:
http://leafletjs.org/edit.html // Defaults to Plunker using latest
version
http://leafletjs.org/edit.html#provider:codepen;version:1.1.0 // Codepen
with version 1.1.0
http://leafletjs.org/edit.html#provider:jsfiddle;version:master //
JSFiddle with master version.

* To ES5 and file move

To ES5 and file move
2017-10-25 08:53:35 +02:00
Arne Schubert
1595b289ea Add YAGA leaflet-ng2 plugin (#5867) 2017-10-24 19:03:00 +02:00
Andrew
7e5cbceaa5 add icon popupAnchor option test for nonPhantom browsers (#5865) 2017-10-23 15:29:28 +02:00
Andrew
919ead4288 add namespace to svg factory (#5864) 2017-10-23 12:17:19 +02:00
iH8
14fc98cb52 Options for LayerGroup (#5792)
* Options for LayerGroup

Add options parameter to L.Layergroup.initialize and set options.

* Options for LayerGroup factory

Added options parameter to LayerGroup factory method and updated docs
2017-10-23 09:16:24 +02:00
Andrew
dd4667db61 Merge pull request #5859 from Leaflet/fix-circle-bounds-calc
Round circle radius in renderer instead of layer
2017-10-21 12:47:12 +02:00
Andrew
01f9274768 Merge pull request #5861 from danwild/plugin-leaflet-velocity
Add leaflet-velocity to plugin list
2017-10-21 11:13:05 +02:00
Dan Wild
6eb936d03d Added leaflet-velocity to plugin list 2017-10-21 09:27:50 +11:00
ghybs
47a9df194b plugins: add Leaflet.ActiveLayers plugin by vogdb (#5857)
Author already submitted another plugin (Leaflet.SelectLayers) himself some time ago (see commit 18e0061450)
2017-10-20 14:53:13 +02:00
Per Liedman
a9742e0d4b Round circle radius in renderer instead of layer
Makes bounds calculation more precise and zoom level independant.
Fixes #4582.
2017-10-20 14:51:48 +02:00
C Ganesh Sundar
38b3fdec80 Update docs for L.DomEvent.off() (#5855) 2017-10-20 08:29:21 +02:00
ghybs
4782eace28 Docs(MapPanes): add class names links to panes description (#5850)
* Docs(MapPanes): explicitly list layer types in overlayPane

"overlayPane" is the default pane for Layers (https://github.com/Leaflet/Leaflet/blob/v1.2.0/src/layer/Layer.js#L36), but it is overridden for many sub-classes (Marker, DivOverlay, GridLayer).
It would be easier to understand where things go if we explicitly list them in Map Panes section as well. It is almost the case, except for Image Overlay and Video Overlay.

* Docs(MapPanes): convert tooltip class name into code and hyperlink

for consistency with other class names.
2017-10-19 14:23:53 +02:00
Raymond Duckworth
e63370ab4c Small typo (#5849) 2017-10-19 09:07:55 +02:00
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