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
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