Iván Sánchez Ortega
11ebda22d5
Work around MS Edge duplicated dblclick on DomEvent.DoubleTap
2016-01-13 14:44:33 +01:00
Iván Sánchez Ortega
ce0b289504
Test webpage for dblclick/dbltap performance
2016-01-13 14:40:30 +01:00
Iván Sánchez Ortega
25648b8f35
Possible fix for #4127 , assume dblclick DOM event exists in touch-capable browsers
2016-01-13 14:40:30 +01:00
Iván Sánchez Ortega
dde24042d2
Implement L.Browser.edge
2016-01-13 14:29:46 +01:00
Iván Sánchez Ortega
228d357239
Work around precision issues in circle radius, fixes #2425
2016-01-08 14:45:34 +01:00
Iván Sánchez Ortega
88fa86a692
Merge pull request #4010 from Leaflet/dragend-click
...
Fix event target fallbacking to map after marker drag (fix #3971 )
2016-01-08 13:43:11 +01:00
Iván Sánchez Ortega
653f5d01ff
Merge pull request #4099 from tcoats/tileunload-cases
...
Fire tileunload for all unloading of tiles
2016-01-08 13:27:24 +01:00
Iván Sánchez Ortega
7de33f0f7b
Merge pull request #4108 from Leaflet/geojson-case
...
Consistent GeoJSON casing
2016-01-08 11:32:36 +01:00
Iván Sánchez Ortega
6b23688121
Merge pull request #4110 from hyperknot/retina-fix
...
retina url fix
2016-01-08 11:31:20 +01:00
Iván Sánchez Ortega
adbcf75c92
Merge pull request #4114 from Leaflet/projected-bounds-from-all-polyline-coords
...
Use all projected coords when calculating Polyline's pixel bounds.
2016-01-08 11:25:27 +01:00
Per Liedman
832b43ac58
Use all projected coords when calculating Polyline's pixel bounds.
...
Close #3968 . Close #4020 .
2015-12-28 20:59:57 +01:00
Yohan Boniface
748ae5338f
Merge pull request #4089 from Leaflet/always-reset-enforcing-bounds
...
Make sure to always reset _enforcingBounds.
2015-12-28 16:43:00 +01:00
Per Liedman
2b64978c9e
Don't use try-finally
2015-12-28 15:00:20 +01:00
Zsolt Ero
b5d3dcf2ab
retina url fix
2015-12-28 05:45:31 +01:00
Yohan Boniface
5e6ef5ce12
Consistent GeoJSON casing
...
I've made the choice to:
- switch API and method to upper case version (GeoJSON, geoJSON, toGeoJSON)
- keep internal variable all lower case (geojson), because we usually do not
uppercase variables
Fix #2444
2015-12-25 14:00:21 +01:00
Yohan Boniface
64484d5c74
Fix event target fallbacking to map after marker drag ( fix #3971 )
2015-12-25 11:54:31 +01:00
Thomas Coats
8a0719f16c
Fire tileunload for all unloading of tiles
2015-12-17 21:34:35 +13:00
Jesper Baasch-Larsen
9d1c59b5cd
use _tileCoordsToKey everywhere
2015-12-15 14:13:52 +01:00
perliedman
2919d8b7bf
src/layer/marker/DivIcon.js
...
Cast bgPos to L.Point. Fixes #4067
2015-12-14 14:19:17 +01:00
perliedman
b6c87c3fa8
Make sure to always reset _enforcingBounds.
...
Even in case of early exit or exception.
Fixes #3938 .
2015-12-14 13:45:47 +01:00
Ole Laursen
f90678a593
Fix bug with max bounds and custom projections.
...
_getBoundsOffset was assuming that SE/NW were the min/max corners, but
this isn't necessarily true after projection.
2015-12-09 14:34:32 +01:00
Per Liedman
7c3d7cb139
When limiting center to bounds, ignore offsets less than a pixel.
2015-12-08 23:10:57 +01:00
Daniela Remogna
609a792792
fix bug for hover event between circle overlapping polygon on canvas
2015-12-05 12:51:11 +00:00
Brobin
70ed0e75c9
call getSize() instead of _size to avoid render error
2015-12-01 17:50:21 -06:00
Iván Sánchez Ortega
edacdf3bd5
Merge pull request #3653 from Leaflet/wheel
...
Switch to wheel event where available
2015-12-01 09:40:32 +01:00
Iván Sánchez Ortega
fa3da6503f
Skip horizontal scroll on wheel events. Thanks to Julius Buset and his laptop's trackpad.
2015-11-30 17:09:30 +01:00
Vladimir Agafonkin
5b0384ea12
Merge pull request #4046 from RLRR/pan-anim-round-newpos
...
Round new map position before animating pan
2015-11-24 12:54:55 +02:00
Vladimir Agafonkin
f23074d790
Merge pull request #4040 from Leaflet/gridlayer-pixelbounds
...
Fix GridLayer pixelBounds computation
2015-11-23 23:48:31 +02:00
Alex Fedosov
3a2331d6c1
round new map position before animating pan
2015-11-23 19:05:39 +06:00
Yohan Boniface
e2fbe19683
Fix GridLayer pixelBounds computation
...
Map size does not change from one zoom to another, so we dont need
to scale it.
Without this change, we are creating more or less 4x tiles when
zooming in.
There are still cases where we are requesting a bit more tiles than
what I would expect, but I see it also happens on 0.7.3
2015-11-22 23:19:57 +01:00
Vladimir Agafonkin
63f239a20f
Merge pull request #4028 from Leaflet/geojson-setstyle
...
Do not set layer.options a reference to layer.defaultOptions (fix #3990 )
2015-11-18 17:02:46 +02:00
Yohan Boniface
7a1496ea4d
Do not set layer.options a reference to layer.defaultOptions ( fix #3990 )
...
git bisect point at ad9d0f8c7f
2015-11-18 13:29:02 +01:00
Yohan Boniface
fd5411d74b
Fix popup toggle on marker click ( fix #3992 )
...
Issue was:
- popup toggling is made on 'click' event
- map listen to 'preclick' to close any open popup
- at second user click, 'preclick' has been fired, then popup
closed, so the popup toggling was reopening it
- this was not an issue before 0d3448d494
because 'preclick' on the marker was not bubbled to the map
- also the unittest covering this use case was too much coupled with
the use case with calling marker.fire instead of simulating user
click on the marker icon
2015-11-14 20:41:53 +01:00
Iván Sánchez Ortega
99a48a5255
Merge pull request #4000 from simsibimsiwimsi/master
...
issue #3995 fixed check for maxZoom option to honor maxZoom 0
2015-11-10 09:04:02 +01:00
Iván Sánchez Ortega
7d35531236
Skip _updateLevels when out of min/max zoom (prevents IE8 exceptions)
2015-11-09 14:35:54 +01:00
Iván Sánchez Ortega
da57507494
L.DomUtil.getPosition should return a fallback value (for VML in IE8)
2015-11-09 12:40:21 +01:00
simsibimsiwimsi
3cfb1eff04
fixed check for maxZoom option to honor maxZoom 0
...
Checking if maxZoom is a number will work fine for {maxZoom: 0} where
options.maxZoom evaluates to false.
2015-11-08 22:44:47 +01:00
Haoyang Xu
772220070f
init interaction regardless of new icon or not
...
[issue #3976 ]
previously interaction only get inited when not reusing icon, i.e. when addIcon
flag is set to true. by taking the statement out of the if condition,
interaction is inited whenever setIcon is called.
2015-10-30 20:50:28 +08:00
Iván Sánchez Ortega
a969d20476
DomEvent.getWheelDelta() now aware of WheelEvent.deltaMode
2015-10-20 10:31:16 +02:00
Iván Sánchez Ortega
f6e9f90c41
Merge pull request #3950 from klaftertief/fix-canvas-zoom_split-events
...
Alternative fix for #3947
2015-10-20 09:40:53 +02:00
Yohan Boniface
d901a5fc07
Fix interactive=false not taken into account for canvas ( fix #3946 )
2015-10-19 21:39:04 +02:00
Jonas Coch
3e0067fab7
Split renderer events and use zoomstart
only in SVG renderer
2015-10-16 20:32:44 +02:00
Jonas Coch
e6e165869f
Disable _onZoomStart
in canvas renderer
...
This fixes disappearing paths when starting an animated zoom.
2015-10-16 13:27:53 +02:00
Jonas Coch
0df4d57f91
Use moving() method to simplify check in canvas renderer
2015-10-15 20:45:23 +02:00
Jonas Coch
b0d5c12b50
Add moving() method to MapDrag handler
2015-10-15 20:44:17 +02:00
Jonas Coch
ace08c17ca
Only check for moving draggable in canvas renderer when map is draggable
2015-10-15 17:21:22 +02:00
Vladimir Agafonkin
a147dae838
Merge pull request #3923 from Leaflet/renderer-pinch-zoom
...
Better handling of Renderer positioning during pinch-zoom, fixes #3919
2015-10-13 15:58:52 +03:00
Yohan Boniface
f75d80a626
Canvas: layer is removed later by this._draw ( fix #3926 )
2015-10-12 17:11:50 +02:00
Iván Sánchez Ortega
a7f72fd6bd
Merge pull request #3925 from Leaflet/layers-control-touch
...
Fix control layers scrolling on touch (fix #2882 )
2015-10-12 14:48:52 +02:00
Yohan Boniface
9d10699bcd
Fix control layers scrolling on touch ( fix #2882 )
2015-10-12 14:33:32 +02:00
Iván Sánchez Ortega
2191cfa8b0
Better handling of Renderer positioning during pinch-zoom, fixes #3919
2015-10-12 14:10:48 +02:00
Yohan Boniface
d3198d8d39
Fix duration not passed through from setView to panBy ( fix #3300 )
2015-10-12 14:02:30 +02:00
Vladimir Agafonkin
a0ff396b94
Merge pull request #3921 from Leaflet/pan-shiftkey
...
multiply offset by 3 on keyboard pan when shift key is pressed
2015-10-10 21:28:38 +03:00
Vladimir Agafonkin
8a5184193e
Merge pull request #3917 from Leaflet/canvas-stop-event
...
Canvas events fixes (fix #3915 )
2015-10-10 21:24:37 +03:00
Yohan Boniface
6af0cfde53
multiply offset by 3 on keyboard pan when shift key is pressed
2015-10-10 18:03:05 +02:00
Yohan Boniface
6c3b9e10b8
Fix L.Circle init without options.radius
2015-10-09 20:24:42 +02:00
Yohan Boniface
0b0989f9f1
Canvas events fixes ( fix #3915 )
...
- fix fireEvent called for each layer containing event point
- fix layer not removed from this._layer at remove
- fix L.DomEvent.stop(e) not honoured for canvas because events
are both listenned on canvas container and map container
2015-10-09 18:28:35 +02:00
danzel
8f6d188088
bringToFront / bringToBack for popups.
...
Fixes #3813
2015-10-09 09:49:49 +13:00
Yohan Boniface
7c2ac9f39d
Make sure mouse has an external relatedTarget on mouseout/over ( fix #3797 #3708 )
2015-10-08 14:57:33 +03:00
Vladimir Agafonkin
3bf767c5a9
Merge pull request #3897 from Leaflet/transitionend-timeout
...
Zoom anim fires 'transitionend' event handler on a timer
2015-10-08 14:08:03 +03:00
Iván Sánchez Ortega
8685e6a106
Do not reset a gridlayer during a zoom animation, fixes #3902
2015-10-08 11:46:19 +02:00
Vladimir Agafonkin
0964aa882d
Revert "Removing unneeded L.Map._latLngToNewLayerPoint, see #3895 "
...
This reverts commit 08c779367f
.
2015-10-08 01:06:41 +03:00
Iván Sánchez Ortega
e15097dc1a
Hack iOS tile loading race hack-fix from 3e200bed
2015-10-07 17:04:24 +02:00
Vladimir Agafonkin
4d934dfecb
Merge pull request #3872 from Leaflet/tap-mousemove
...
Simulate mousemove on touchmove (fix #3825 )
2015-10-07 16:50:17 +03:00
Vladimir Agafonkin
ca15b9be8d
Merge pull request #3882 from Leaflet/openpopup-while-animating
...
Prevent Popup._adjustPan while already panning (fix #3744 )
2015-10-07 13:52:32 +03:00
Yohan Boniface
03d3bee8b1
Prevent Popup._adjustPan while already panning ( fix #3744 )
2015-10-07 12:34:42 +02:00
Iván Sánchez Ortega
08c779367f
Removing unneeded L.Map._latLngToNewLayerPoint, see #3895
2015-10-07 12:30:20 +02:00
Vladimir Agafonkin
be43485e02
Merge pull request #3895 from Leaflet/renderer-animatezoom
...
L.Renderer shall use center and not topleft as reference
2015-10-07 13:28:12 +03:00
Iván Sánchez Ortega
c101b836c7
GridLayers implement the 'noWrap' option (previously in 0.7.x TileLayers)
2015-10-06 16:38:30 +02:00
Iván Sánchez Ortega
4eb39d5312
Zoom anim fires 'transitionend' event handler on a timer, see #3689 , #2693
...
Nothing but a port of a hack in stable, see 91477588fa
2015-10-06 16:09:33 +02:00
Iván Sánchez Ortega
a2595bbfe8
L.Renderer shall use center and not topleft as reference, fixes #3769
2015-10-06 15:35:10 +02:00
Iván Sánchez Ortega
c9532a8d92
Workaround for keyboard tabindex in MS Edge, fixes #3772
2015-10-06 10:12:11 +02:00
Yohan Boniface
8f189bce23
Add flag not to run panInsideBounds when already panning ( fix #3848 )
2015-09-30 12:11:26 +02:00
Yohan Boniface
a1d488a9ac
Simulate mousemove on touchmove ( fix #3825 )
2015-09-28 16:28:07 +02:00
Vladimir Agafonkin
8c8d0ac7ee
fix whitespace in comments
2015-09-25 15:37:07 +03:00
Vladimir Agafonkin
301473ad4d
more strict eslinting
2015-09-25 13:40:21 +03:00
Coen Mulders
bcde047f09
Added zoom for the custom scale in L.CRS.Simple
...
Fixes #3867
2015-09-25 13:16:52 +03:00
Vladimir Agafonkin
7a9f2aefb3
Merge pull request #3859 from olee/patch-1
...
Fix bug with maxNativeZoom == 0
2015-09-22 00:57:53 +03:00
Björn Zeutzheim
458d5c9ac8
Fix bug with maxNativeZoom == 0
...
Setting `maxNativeZoom` to `0` does not work as expected (only use zoom level 0) but instead disables the function.
This PR fixes this problem.
Same fix applies for (afaik current stable) 0.7.5
2015-09-22 01:49:05 +09:00
Yohan Boniface
8ea42c1ccc
Add padding on canvas redraw bounds
2015-09-20 12:32:40 +02:00
Yohan Boniface
f643d25637
Use clip to limit canvas redraw area ( fix #3583 )
2015-09-20 12:32:40 +02:00
Yohan Boniface
e576ce528e
Linting
2015-09-20 12:32:15 +02:00
Vladimir Agafonkin
6e9236de93
Merge pull request #3837 from Leaflet/rendered-update
...
Always call renderer.getEvents before Path.getEvents (fix #3836 )
2015-09-20 00:06:36 +09:00
Iván Sánchez Ortega
e0aa981818
Merge pull request #3841 from javimolla/fix2990
...
Extract logic from getScaleZoom to CRS
2015-09-19 11:03:00 +09:00
Iván Sánchez Ortega
3924d49bcd
Consistency between L.circle and L.circleMarker ( #3785 )
2015-09-17 23:22:55 +09:00
Vladimir Agafonkin
d1ea887b1b
Merge pull request #3694 from Leaflet/disabled-layer-control
...
L.Control.Layers shows disabled inputs for non-visible tilelayers
2015-09-17 18:04:29 +09:00
Vladimir Agafonkin
e1c714edab
Merge pull request #3722 from Leaflet/gridlayer-zindex-fix
...
Always force GridLayer to have a zIndex
2015-09-17 17:57:13 +09:00
Matthew Mueller
b8aea43414
Fixing negative acceptableHeights and supporting browser resize
...
The previous formula calculated acceptableHeight as (map height - (4 * element offset). If the element had other controls above it, it might be pushed lower on the screen, which depending on screen size means that the acceptableHeight could quickly become a negative value which causes a bug. For example: my map has a height of 815px, and my layer control is offset from the top 277px so it is almost halfway down my screen. Using the old formula, the acceptable height would be 815 - (277 * 4) = -293. Since the acceptable height was less than the client height the scrollbar would show up, but it would be greyed out, and because the height limit was negative, the window would not have a height limit and expand off the map. Using the new formula it takes the vertical offset, and adds 50px(element is 36px,+ bottom credits height + a few pixels for a bottom margin) to determine max height. This means the element will be able to expand until it is a few pixels above the credits at the bottom of the map before it stops expanding.
Additionally, by resetting the form.style.height to null before checking the clientHeight, we are removing the limit on the height of the control, so that if someone resizes their browser window to make it larger when viewing the layer list, the list will reset the max height instead of keeping the smaller max height that was already set, and in addition, if the scrollbar is no longer needed, it will be removed.
2015-09-17 17:42:56 +09:00
Vladimir Agafonkin
a54c239238
Merge pull request #3815 from Leaflet/tilelayer-update-zoom
...
Fix TileLayer._update so it doesn't break drag-then-pinch interactions.
2015-09-17 17:36:13 +09:00
Yohan Boniface
bd55613cb5
Always call renderer.getEvents before Path.getEvents ( fix #3836 )
2015-09-16 11:35:26 +02:00
Vladimir Agafonkin
9ee0fbed98
Merge pull request #3831 from Leaflet/transform3D-threshold
...
Cleaner code for L.Map._onMoveEnd
2015-09-16 16:10:13 +09:00
javimolla
76868ad3f4
Extract logic from getScaleZoom to CRS
...
Added tests for custom crs with zooms not power of two related
2015-09-15 17:58:19 +02:00
danzel
c60fd1d17b
Only preventDefault for non-mouse events, this makes mouse events still cause mousedown/up events, which is usually what you want. Fixes #3804
2015-09-14 13:19:16 +12:00
danzel
c6d8587753
Don't use maxTouchPoints detection in IE11+ (or edge) either, matching our msPointer detection.
2015-09-14 13:18:43 +12:00
Iván Sánchez Ortega
17c180e1ef
Update max precision of CSS transforms to those of 32-bit floats, as used by Firefox
2015-09-11 16:18:24 +02:00
Yohan Boniface
5f1b230bda
Cleaner code for L.Map._onMoveEnd
2015-09-11 12:20:51 +02:00
Yohan Boniface
c5172f3088
Prevent to use extreme values in transform3d
...
- FF bugs in positioning the element
- Chrom(e|ium) have a one pixel offset
2015-09-11 11:02:22 +02:00
Iván Sánchez Ortega
e5182affc6
Make GridLayer._update always depend on the map's zoom level.
2015-09-10 09:41:39 +02:00
Iván Sánchez Ortega
bc36fb645d
Make linter happy.
2015-09-09 16:46:09 +02:00
Iván Sánchez Ortega
641cdd07f7
Clarifications for GridLayer._update
2015-09-09 16:25:20 +02:00
Iván Sánchez Ortega
e5a208c670
Fix #3355 by not aborting tile loading for tiles in the "active" zoom level.
2015-09-09 16:06:57 +02:00
Iván Sánchez Ortega
3c3f23f339
Fix small minZoom/maxZoom infinite-loop-on-map-load regression
2015-09-09 15:41:56 +02:00
Iván Sánchez Ortega
7098b04cd7
Modify GridLayer update logic to run smoother on zoom pinch & flyTo anims.
2015-09-09 14:03:12 +02:00
Iván Sánchez Ortega
944f2de3a8
Fix TileLayer._update so it doesn't break drag-then-pinch interactions.
2015-09-08 15:24:51 +02:00
Vladimir Agafonkin
08d655fe66
upgrade deps and stricter eslint
2015-09-04 17:46:55 +02:00
Yohan Boniface
61c07bd3e3
Call layer.getEvents before calling layer.onAdd ( fix #3745 )
2015-09-04 10:02:11 +02:00
Iván Sánchez Ortega
809186dcc9
Make linter happy about whitespace
2015-08-31 16:41:54 +02:00
Iván Sánchez Ortega
e698f641af
Rectangle.setBounds() must return a value
2015-08-28 12:39:28 +02:00
Iván Sánchez Ortega
da8149c164
Move L.Layer.isPopupOpen to appropiate file
2015-08-27 23:56:02 +02:00
Vladimir Agafonkin
28c8417c49
Merge pull request #3776 from knabar/fix-missing-radius
...
Use radius if radiusY is not set
2015-08-26 11:31:12 +02:00
i.taratuhin
5a61a5ec48
fix init bug when script in document don't have src
2015-08-25 14:47:18 +06:00
Patrick Arlt
431547c28e
Trailing whitespace
2015-08-09 15:45:18 -07:00
Patrick Arlt
66e6e856de
Always force GridLayer to have a zIndex
...
Fixes https://github.com/Leaflet/Leaflet/issues/3721
2015-08-09 15:42:24 -07:00
Vladimir Agafonkin
d17e53bbf6
Merge pull request #3663 from fminuti/flyTo-center
...
FlyTo with targetCenter == currentCenter not animated
2015-08-07 16:08:29 +03:00
Andreas Knab
0848635b9a
Use radius if radiusY is not set
2015-08-06 15:31:27 +02:00
Vladimir Agafonkin
81e71fe7e0
check for geolocation clearWatch, #3707
2015-08-04 13:39:51 +03:00
Per Liedman
fecd412209
Truncate high/low latitudes for Spherical Mercator like previous versions.
...
Close #3700 .
2015-08-03 21:26:56 +02:00
Fabrizio Minuti
936b8d119d
Remove extra params from L.Util.requestAnimFrame calls
...
I removed the parameters from the calls to L.Util.requestAnimFrame:
they don’t seem to be used.
2015-08-03 14:49:19 +02:00
Iván Sánchez Ortega
723c22312d
L.Control.Layers shows disabled inputs for non-visible tilelayers
2015-07-30 13:59:09 +02:00
Iván Sánchez Ortega
895a75de48
Do not set draggable flags during a zoom animation
2015-07-30 10:33:57 +02:00
Vladimir Agafonkin
62f26f288d
Merge pull request #3688 from fminuti/setTransform-ie11-fix
...
Fix Internet Explorer 11 map overflow outside container
2015-07-29 15:44:06 +03:00
Vladimir Agafonkin
4a60b1a666
Merge pull request #3686 from Leaflet/msie-disable-dragging
...
Allow disabling dragging during mid-drag.
2015-07-29 15:16:14 +03:00
Fabrizio Minuti
4a8e1b6a87
Fix Internet Explorer map overflow outside container
2015-07-29 14:10:20 +02:00
Iván Sánchez Ortega
39f03304a6
Fix Marker dragging with changing Icon, see #3687
2015-07-29 11:21:19 +02:00
Iván Sánchez Ortega
6bb447bafe
Allow disabling dragging during mid-drag.
2015-07-29 10:19:01 +02:00
Iván Sánchez Ortega
afa0d1d87b
Change L.Browser.msPointer detection code to MS recommendation
2015-07-28 19:41:09 +02:00
Vladimir Agafonkin
8b39622ab9
Merge pull request #3682 from Leaflet/drag-mousedown
...
Do not stop mousedown event propagation on L.Draggable
2015-07-28 18:08:23 +03:00
Yohan Boniface
2b03540c23
Do not stop mousedown event on L.Draggable
...
Rationale is to let Leaflet plugins use the mousedown event.
2015-07-28 17:06:01 +02:00
Fabrizio Minuti
93c2b52604
fix imageoverlay setBound when not added to map
...
If imageoverlay#setBounds is called when the layer is not added to a
map, the _reset method gets errors on execution
2015-07-28 12:10:40 +02:00
Fabrizio Minuti
28bbd81204
Add ImageOverlay setBounds
...
Add ImageOverlay setBounds method.
2015-07-28 11:23:46 +02:00
Vladimir Agafonkin
b78da9dc0c
Merge pull request #3678 from Leaflet/baselayerchange-event
...
Fix baselayerchange event argument (fix #3677 )
2015-07-27 16:49:21 +03:00
Yohan Boniface
08674721bc
Fix baselayerchange event argument ( fix #3677 )
2015-07-27 15:41:07 +02:00
Vladimir Agafonkin
0b88983096
Merge pull request #3671 from w8r/gridlayer-opacity-fix
...
Gridlayer opacity flicker fix
2015-07-24 17:51:43 +03:00
w8r
5e32cd190c
fixes #3652 by container opacity approach
2015-07-24 15:57:43 +02:00
fminuti
fc23c162b4
FlyTo with targetCenter == currentCenter not animated
...
Please see http://jsfiddle.net/v1so6m56/4/
If targetCenter is the same of currenteCenter the parameter u1 (the distance between "to" and "from" is 0.
The proposed patch resolve this by forcing the distance to 1.
2015-07-23 12:16:30 +02:00
Vladimir Agafonkin
ccfd306eb5
Merge pull request #3662 from fminuti/vml-fixes
...
Fix vector layers in IE8, close #2809
2015-07-23 12:37:11 +03:00
fminuti
62f8261b10
Fix for #2809
...
Fix for "Vector layers loose styling in IE8 when removing and adding back to the map" #2809
2015-07-23 11:33:58 +02:00
Vladimir Agafonkin
bf8f0b45b1
Revert canvas removeLayer regression, close #3661
...
This reverts commit 80b8d5f4c9
.
2015-07-23 12:29:55 +03:00
Vladimir Agafonkin
c2de88c688
fire moveend on panBy without movement, close #3655
2015-07-22 19:42:57 +03:00
Vladimir Agafonkin
64333d2dc3
reduce the throttle for canvas layers
...
It felt laggy with 66. 32 is just about right — 30fps.
2015-07-22 19:41:01 +03:00
Vladimir Agafonkin
80b8d5f4c9
improve canvas removeLayer perf, close #3076
2015-07-22 19:37:24 +03:00
Vladimir Agafonkin
45ebba4159
Fix panTo with no anim resetting the view, close #3355
2015-07-22 19:34:00 +03:00
Vladimir Agafonkin
b19581a588
adjust wheel zooming values
2015-07-20 19:25:18 +03:00
Vladimir Agafonkin
cf70095140
get rid of MozMousePixelScroll
2015-07-20 19:24:57 +03:00
davidlukerice
a9060741a2
loop backwards on input click in case elements get removed
2015-07-20 10:13:08 -05:00
Vladimir Agafonkin
30df3817cd
Merge pull request #3650 from Leaflet/mouseout-not-listened
...
Fix mouseout bubbling while initial target was not listening (fix #3648 )
2015-07-20 17:03:40 +03:00
Yohan Boniface
c1f21eb38f
Fix mouseout bubbling while initial target was not listening ( fix #3648 )
2015-07-20 15:56:11 +02:00
Yohan Boniface
78b486ac48
Dont call preventDefault on contextmenu if no target listen to it ( fix #3638 )
2015-07-17 17:15:19 +02:00
Vladimir Agafonkin
7d52912a0c
use wheel event where possible
2015-07-17 17:31:12 +03:00
Yohan Boniface
8870c2abf8
Fix boxZoom._moved remaining in bad state after use (cf #3026 )
2015-07-17 12:54:59 +02:00
Vladimir Agafonkin
21934dc2b3
Merge pull request #3634 from Leaflet/preclick-dragend
...
Do not fire preclick when dragging (fix #3632 )
2015-07-16 18:10:15 +03:00
Yohan Boniface
bd65b443e4
Do not fire preclick when dragging ( fix #3632 )
2015-07-16 15:40:45 +02:00
Vladimir Agafonkin
4457d1414a
Merge pull request #3533 from Leaflet/doubletap-propagation
...
Synthetic doubletap events respect stopPropagation, fixes #3532
2015-07-15 16:05:28 +03:00
Vladimir Agafonkin
0f105c8e9c
Merge pull request #3547 from philippelatulippe/canvas-optimization
...
Simple canvas optimizations
2015-07-15 16:01:11 +03:00
Vladimir Agafonkin
3e636d26b9
bump versions
2015-07-15 12:12:53 +03:00
Vladimir Agafonkin
f717fd60e5
fix preventOutline exception, close #3625
2015-07-15 11:59:27 +03:00
Will Franklin
fd8759d5e1
Use ID lookup instead to avoid re-adding layer on style change
2015-07-14 17:45:57 +02:00
Yohan Boniface
76cb60705f
Switch from L_PREFER_CANVAS to map.options.preferCanvas
2015-07-14 10:27:50 +02:00
Philippe Latulippe
fd64c7e5c3
Simple canvas optimizations:
...
- throttle mouseover
- don't check for hover when the map is being panned (since the mouse isn't moving in relation to the map)
- only check visible layers when checking for hover (by storing unculled layers in an array)
2015-07-13 22:22:31 +02:00
Yohan Boniface
1eab6079e8
Resuscitate L_PREFER_CANVAS
2015-07-13 19:05:06 +02:00
Vladimir Agafonkin
1ee24802a7
Merge pull request #3618 from wpf500/wpf-canvas-mouse-out
...
Check canvas mouseout
2015-07-13 15:33:34 +03:00
Will Franklin
76cd73c97a
Check canvas mouseout
2015-07-13 12:42:39 +01:00
cmulders
daac1ca559
Hardcoded dependency L.CRS.Earth in L.Control.Scale
...
Currently, L.Control.Scale uses hard-coded the L.CRS.Earth.distance function, while this CRS could have been changed by the user in the map creation. Changing this to map.distance will remove this hard-coded dependency adding flexibility, while maintaining the same functionality.
2015-07-12 14:22:20 +02:00
Iván Sánchez Ortega
265f201433
Fix touchZoom regression from 06f90b1a
2015-07-10 19:13:16 +03:00
Vladimir Agafonkin
bf234810f0
fix preventOutline for nested elements, close #3606
2015-07-10 18:30:44 +03:00
Yohan Boniface
07b7219bc9
Only consider a target if it listens for event type ( fix #3607 )
2015-07-09 23:00:52 +02:00
Yohan Boniface
74018f284e
Add nonBubblingEvents option ( fix #3604 )
2015-07-09 14:12:12 +02:00
Vladimir Agafonkin
d2513b2d53
fix maxNativeZoom regression, thanks @ktoto
2015-07-07 16:32:51 +03:00
Iván Sánchez Ortega
e71bd4b71f
Make L.TileLayer.getTileSize aware of non-square tiles, #3600
2015-07-06 16:58:54 +02:00
Yohan Boniface
fd1b94550c
Fix popup broken since 9b7f24f5f6efb94be2a96d7d7f4c604783135d10
...
Popup where binded by the LayerGroup, which was not finring the click
event, because not propagated from the layers
2015-07-06 13:55:59 +02:00
Vladimir Agafonkin
d86c6002d7
minor cleanup
2015-07-06 13:55:59 +02:00
Yohan Boniface
50d7121f72
Make _fireDOMEvent accept optional targets
...
In the case of canvas path, we can't add the canvas element itself
as an interactiveTarget, given that it's big like the path bbox, and
thus would make all this bbox target of events (so also clicking
outside of the path itself, the layer would fire click event, for
example)
2015-07-06 13:55:59 +02:00
Yohan Boniface
68195aa2bd
More natural event bubbling
2015-07-06 13:55:59 +02:00
Yohan Boniface
54c8925818
Add map as layer event parent
2015-07-06 13:55:59 +02:00
Iván Sánchez Ortega
d1864cd138
Move 'preclick' event handling around so it propagates before 'click'.
2015-07-06 13:55:59 +02:00
Yohan Boniface
0d3448d494
Always fire DOM event on the map too
2015-07-06 13:55:59 +02:00
Patrick Arlt
caf692d2a8
Allow for access to imageData on L.ImageOverlay
...
This implements the changes in https://github.com/Leaflet/Leaflet/pull/2621 for cross origin tiles for `L.ImageOverlay` so that the image data can be accessed in canvas and saved.
2015-07-02 14:00:08 -07:00
Will Franklin
320c46c6d5
Only mouse over one feature at a time
2015-07-02 16:15:43 +01:00
Patrick Arlt
6bf0f98796
fix popup offseting
2015-07-02 00:44:31 +03:00
Steve Kashishian
3687ed81e6
Fix setting of offset for popups.
...
Fixes #3525
2015-07-02 00:44:30 +03:00
petr
18933e1764
accept geojson with null geometry
2015-07-01 13:28:10 -07:00
Vladimir Agafonkin
ae90893e1e
Merge pull request #3582 from wpf500/wpf-mouse-event-order
...
Fix ordering of mouse events in Canvas renderer
2015-07-01 14:32:37 +03:00
Will Franklin
2bc78b26ca
Fix ordering of mouse events in Canvas renderer
2015-07-01 12:31:00 +01:00
Vladimir Agafonkin
cca6e6165f
Merge pull request #3580 from wpf500/wpf-bounds-check
...
Check bounds before clipping
2015-07-01 13:39:38 +03:00
Will Franklin
4952b37256
Check bounds before clipping
2015-07-01 11:24:05 +01:00
Iván Sánchez Ortega
56be19a42d
Fix nomenclature of point scale/unscale methods, see #3570
2015-06-30 15:13:08 +02:00
Vladimir Agafonkin
c38159d986
Merge pull request #3571 from rowanwins/layerControlScroll
...
Scrollbar for layers control with too many layers
2015-06-30 15:25:06 +03:00
Rowan Winsemius
9bfb6d854e
Updated approach for resolving scrollbar issue in legend
2015-06-30 21:59:20 +10:00
Iván Sánchez Ortega
cf5111306f
Implement non-square tiles for L.GridLayer, see #3570
2015-06-30 13:54:56 +02:00
Vladimir Agafonkin
7e45690169
Merge pull request #3564 from rowanwins/layerControlFix
...
Fix for issue #2771
2015-06-30 13:19:03 +03:00
Rowan Winsemius
43da2c32a3
Add scroll handling for when the legend extends past the map height
2015-06-29 20:21:03 +10:00
Rowan Winsemius
3d7d62d7b7
Fix for this issue https://github.com/Leaflet/Leaflet/issues/2771
2015-06-27 16:30:33 +10:00
Vladimir Agafonkin
7798782480
Merge pull request #3557 from TolonUK/getTiledPixelBounds
...
Move some logic from GridLayer._update to _getTilePixelBounds
2015-06-24 19:38:15 +03:00
tolon
1f8d2a8072
New GridLayer._getTilePixelBounds function to contain the logic that used to be in _update
2015-06-20 10:54:50 +01:00
Alex Fedosov
93f4ba7f8e
fix non-interactive vml layers
2015-06-19 12:32:17 +06:00
Iván Sánchez Ortega
c3288ab765
Synthetic doubletap events respect stopPropagation, fixes #3532
2015-06-11 11:35:09 +02:00
Alex Fedosov
644bb7157a
add map presence check to onMoveEnd handler, fixes #3522
2015-06-10 11:48:16 +06:00
Alex Fedosov
b31a1e8be6
fix GridLayer move event handler, fixes #3522
2015-06-09 21:22:40 +06:00
Iván Sánchez Ortega
5245b94aad
Reworked pixelBounds calculation in GridTile to deal with fractional zoom
2015-06-09 09:44:52 +02:00
Vladimir Agafonkin
f61e2f4a7b
Merge pull request #3278 from Leaflet/events-refactor
...
Refactor move/zoom events
2015-06-05 21:02:51 +03:00