Commit Graph

6449 Commits

Author SHA1 Message Date
Dan
4a65730087 leaflet-geopackage plugin added (#5495)
Added the leaflet-geopackage plugin to the Overlay data formats section
2017-05-04 08:31:20 +02:00
Iván Sánchez Ortega
e9cc3a3d73 Symlink reference.html to reference-1.0.3.html (#5490) 2017-05-02 12:49:40 +02:00
Iván Sánchez Ortega
66cf6a0ea1 Take devicePixelRatio into account for scrollwheel zoom in win10+chrome (#5480) 2017-04-27 16:47:11 +02:00
Iván Sánchez Ortega
b19893c9ba Add hook points to allow for a proper NoGap plugin (#5476) 2017-04-27 15:38:55 +02:00
Massimiliano Caniparoli
bd7cf8a265 Correct Here Maps URL (#5482) 2017-04-26 16:37:15 +02:00
Iván Sánchez Ortega
7e1740ecdf Better sanity checks for avoiding loading infinite tiles (#5479)
* Sanity check to prevent loading tiles when bounds are `Infinity`

* Make linter happy

* Better sanity checks for avoiding loading infinite tiles

* typo
2017-04-25 15:00:47 +02:00
Iván Sánchez Ortega
6d6b07612e Sanity check to prevent loading tiles when bounds are Infinity (#5478)
* Sanity check to prevent loading tiles when bounds are `Infinity`

* Make linter happy
2017-04-25 14:31:27 +02:00
Patrick Paskaris
8e96ac476d Fix box zoom race condition (#5452)
* Fix box zoom race condition

The deferred call to `_resetState` can interrupt the next box zoom if
the user initiates it before the timeout fires. This causes the mouse
move handler to create a second box zoom element, orphaning the first
one and leaving it in the DOM.

* Extract duplicate code into private method
2017-04-20 15:57:17 +02:00
Oliver Heilig
1318b999ef On update set current tiles active to avoid pruning (#5381) (#5431)
* On update set current tiles active to avoid pruning (#5381)

* fix for missing tiles - without flickering (#5381)
2017-04-20 14:19:26 +02:00
Gherardo Varando
41a4af9f44 leaflet-map-builder plugin added (#5445)
leaflet-map-builder plugin added in Frameworks and build systems section
2017-04-20 12:46:21 +02:00
Luis Camacho
b9df865730 make L.Mixin.Events a simple object instead of a prototype so it doesn't have a 'constructor' property. fixes #5451 (#5453) 2017-04-20 12:45:33 +02:00
Guillaume P
ac05f68a39 Canvas: call ctx.setLineDash in _fillStroke (#5454)
* Canvas: call ctx.setLineDash in _fillStroke

This make dashArray working properly for cirles.

fix #5182

* Debug: add dashed circle example

* Debug: add simple example reproducing #5182
2017-04-20 12:41:26 +02:00
Luis Camacho
ff72181b52 Fix __super__ by not copying it from the parent when subclassing (#5456) 2017-04-20 12:39:49 +02:00
Mstislav Zhivodkov
cbaf02034c Remove global L usage (#5463) 2017-04-20 12:38:28 +02:00
Iván Sánchez Ortega
561b7f737b Add subresource integrity information & scripts (#5468)
* Add subresource integrity information & scripts

* Include the integrity hashes in all tutorials also

* Change wording of one of the build scripts
2017-04-19 14:56:14 +02:00
Per Liedman
da4e6c1c5e Only rearrange DOM in toFront/toBack if needed (#5465)
Addresses problem where Internet Explorer re-fires mouseover if
the element is re-appended to the DOM.

Fixes #4050.
2017-04-18 16:09:19 +02:00
Mirodil
458b7177b2 Push back keyboard navigation order of L.Popup's close button (#5461)
* Web accessibility

so tabbing through the page make the link(in the popup) to the first entry focussed before the 'x' for close

* remove spaces
2017-04-18 15:12:00 +02:00
Dave Leaver
c06db46191 Merge pull request #5462 from gatsbimantico/issue5118
Issue #5118 Fix documentation for method setZoom
2017-04-18 09:58:46 +12:00
gatsbimantico
cc4dce13d0 Issue #5118 Fix documentation for method setZoom 2017-04-17 19:17:33 +01:00
Isaac Besora Vilardaga
c0b6915bc6 Added the quatree plugin (#5450) 2017-04-12 11:14:40 +02:00
Richard Littauer
e5b245fc95 Add other h2 headers to ToC (#5448)
This adds the other secondary headers in the Contributing document to the Table of Contents at the top. I have kept the depth at what it was - this just adjusts the oversight of other sections.
2017-04-12 11:12:41 +02:00
Per Liedman
013198c9e2 Change copyright year from 2015 to 2017 (#5433) 2017-04-07 13:34:14 +03:00
qjas
3e000fbe9d Remove spurious check in DomUtil.preventOutline (#5435)
The codes first execute "element.tabIndex"(show that element is not
NULL), then execute "!element" in the condition of if stmt(check whether
the element is NULL or not). It is a contradiction.
I think since the element must not be NULL(otherwise the execution of
"element.tabIndex" would be wrong) when the while stmt finishes, the
next if stmt doesn't need to check the element like "!element" again.
Checking the element.style is already enough. So remove the "!element".
2017-04-05 12:12:56 +02:00
Iván Sánchez Ortega
61ff641951 Add new class L.VideoOverlay (#4988)
* Add VideoOverlay class based on ImageOverlay

* Make linter happy

* Move VideoOverlay include to layer/index

* Fix mapbox tokens
2017-04-04 22:45:09 +02:00
Iván Sánchez Ortega
79ab486dde WIP: Tutorial about zooming. (#5007)
* Add tutorial about zooming.

* Punctuation fixes
2017-04-04 22:04:46 +02:00
Dan Turkel
b80b2e4f99 Escape html elements inside code sample (#5432)
The markup renderer will still literally render html tags inside "pre" and "code" unless they're escaped. The result was that the example code would be rendered as:
var baseMaps = {
	"Grayscale": grayscale,
	"Streets": streets
};
rather than
var baseMaps = {
	"<span style='color: gray'>Grayscale</span>": grayscale,
	"Streets": streets
};
because the "Grayscale" text would be literally styled as a span with gray color, and then recolored by the syntax highlighter.

Escaping the span tags fixes this.
2017-04-04 21:31:36 +02:00
Per Liedman
0abc67fdae Suggest stackoverflow or gis stackexchange for asking questions
Fixes #5430.
2017-04-03 15:05:01 +02:00
Dave Leaver
c758d18fa2 Merge pull request #5426 from jgravois/patch-1
add jsdoc for DomUtil.TRANSITION_END
2017-03-31 13:44:00 +13:00
john gravois
48a76bc6fd jsdoc DomUtil.TRANSITION_END 2017-03-30 17:34:51 -07:00
Bert Spaan
9baeb34dae Added Leaflet.GeotagPhoto to list of plugins (#5424)
* Added Leaflet.GeotagPhoto

* removed "Leaflet"
2017-03-29 15:23:14 +02:00
Iván Sánchez Ortega
28a0adc132 Ensure renderer's container is init'ed when a path is added to map (#5404) 2017-03-29 09:52:43 +02:00
Dave Leaver
27263b7afa Control.Layers: Only add layer events to layers when we are on the map. Fixes #5421 (#5422) 2017-03-28 23:10:29 +02:00
Tom Salisbury
96cfdd3a3d Added z-index support to ImageOverlay (#5418) 2017-03-28 10:54:24 +02:00
Tom Salisbury
8278ed393d Added error event to ImageOverlay layer and added tests for the new (#5416)
event and existing error handling. Also added missing
documentation for the load event.
2017-03-28 08:54:26 +02:00
Thach Hoang
0d1eae32be Fix debug examples after rollup (#5417)
Fix #5373.

- Remove references to removed file "../../build/deps.js"
- Update leaflet-include.js to point to "../dist/leaflet-src.js"
- Update watch to use the same destination file as rollup (dist/leaflet-src.js)
- Define getRandomLatLng where used
2017-03-28 08:40:48 +02:00
ghybs
06ed42ad2c Docstrings: LayerGroup.hasLayer add method call with id (#5411)
With the current `hasLayer` code, we can call this method by passing the `_leaflet_id` and get the same result as passing the corresponding layer object.
Added the alternative method call, as done for `removeLayer` method.
2017-03-27 09:35:05 +02:00
Dave Leaver
f044a45477 Fixing english 2017-03-27 13:14:09 +13:00
geografa
ca288ddc07 makes gender neutral (#5405) 2017-03-23 00:15:20 +02:00
Yuzo Matsuzawa
edaedb6f56 Add Leaflet.TileLayer.ColorPicker to plugins list (#5398)
Leaflet.TileLayer.ColoPicker adds getColor(latLng) to TileLayer. It will be useful when you just want to pick a color (or elevation encoded as color) from displaying tile.

color picker demo: <https://frogcat.github.io/leaflet-tilelayer-colorpicker/>
elevation picker demo: <https://frogcat.github.io/leaflet-tilelayer-colorpicker/mapbox-terrain-rgb.html>
2017-03-21 09:33:32 +01:00
PPete
087d14170f Plugins: add "Leaflet.PolylineMeasure" (#5394)
* Update plugins.md

* Update plugins.md

* Update plugins.md
2017-03-20 10:05:46 +01:00
BjoernSchilberg
94fff4f101 Use "yarn global add" (#5379)
Use "yarn global add" instead of "yarn install -g". Because "yarn install" is used to install all dependencies for a project [1]. "yarn global"  install packages globally on your operating system [2].

[1] https://yarnpkg.com/en/docs/cli/install
[2] https://yarnpkg.com/en/docs/cli/global
2017-03-08 13:36:58 -08:00
Per Liedman
d3c7ed13ad Stop map on drag start instead of pointer down (#5378)
* Stop map on drag start instead of pointer down; fix #5350

* Remove unused _onDown event handler
2017-03-08 15:41:02 +01:00
geoloep
25014b8825 Plugins: Add Leaflet.ClickTolerance (#5374) 2017-03-07 12:24:04 +01:00
Per Liedman
c18ac11efb Include L.Mixin.Events again; add deprecation notice (#5365)
Close #5358
2017-03-07 09:53:24 +01:00
Anant Prakash
da1a89871d Error handler in ImageOverlay for 404 links (#5307)
* Added Error handler in L.ImageOverlay._initImage

* fixed syntax
2017-03-02 13:28:52 +01:00
Lewis Christie
0ed260c847 fix invalid geoJSON produced by nested LayerGroups (#5359) 2017-03-02 13:21:56 +01:00
8to5Developer
3b4dcbcd2b Plugins: add leaftlet-custom-searchbox (#5363)
Extended the "search & popup" section with the details of the new "leaftlet-custom-searchbox" plugin.
2017-03-01 10:10:59 +01:00
Billy Newman
364bc77735 Update toolbar inner border radius (#5361)
Flatten toolbar inner border radius to match grey outline on touch devices (L.Browser.touch = true).  fixes #5360
2017-02-27 16:42:16 +01:00
Iván Sánchez Ortega
7c17df5d58 Minor formatting of the issue template, update doc link to 1.0.3 2017-02-24 10:32:44 +01:00
Iván Sánchez Ortega
01e0640335 Docstrings: recover lost docstring for L.Util.lastId (#5352) 2017-02-21 14:52:17 +01:00