Commit Graph

2618 Commits

Author SHA1 Message Date
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
Vladimir Agafonkin
30b9b9cfd6 fix whitespace 2015-06-05 20:51:25 +03:00
Vladimir Agafonkin
a5bd03d0e4 add back viewreset
now it has different semantics though — it’s fired when a view is fully
reset, so that all layer DOM elements should be repositioned.
2015-06-05 20:51:21 +03:00
Vladimir Agafonkin
fd708bf173 don't project vectors on every zoom event 2015-06-05 20:51:20 +03:00
Vladimir Agafonkin
625161f15d make vectors work with flyTo 2015-06-05 20:51:20 +03:00
Vladimir Agafonkin
1e9c8649b3 simplify zoom transform math
changes the transform origin for all layers from 50% 50% (implied
default) to 0 0, making it MUCH easier to understand zoom transform
math.
2015-06-05 20:51:20 +03:00
Vladimir Agafonkin
2cf8cc008a simplify renderer animation math 2015-06-05 20:51:20 +03:00
Vladimir Agafonkin
d9e20a250d ditch zoomanim event scale/origin/offset props 2015-06-05 20:51:20 +03:00
Iván Sánchez Ortega
7032bbc13d Graceful degradations of zoom-pan animations on top of refactored zoom-pan events. 2015-06-05 20:51:20 +03:00
Vladimir Agafonkin
06f90b1a5b simplify and unify TouchZoom logic 2015-06-05 20:51:19 +03:00
Vladimir Agafonkin
120d8523c5 Merge pull request #3514 from Leaflet/detached-memory-leak
Cleaning up map layers when map.remove() is run
2015-06-05 01:17:40 +03:00
Vladimir Agafonkin
d13aaac837 refactor _resetView; rely on zoom event in layers 2015-06-04 20:42:30 +03:00
Vladimir Agafonkin
fdd60cc66b ditch viewreset event, reliable zoomend
removes viewreset use everywhere; also changes event order to have
zoomend before move and moveend to make zoomend a reliable viewreset
successor
2015-06-04 20:42:28 +03:00
Vladimir Agafonkin
3ccbe5bca0 trigger tile compositing in Safari
This kind of reverts #2377 that doesn’t make sense after tile animation
refactorings, because it makes Safari terribly slow. It reintroduces
the tile gaps, but oh well, we choose the lesser evil here.

Also, performance in latest iOS is the same with and without the patch
so there’s no harm in removing this.
2015-06-04 19:15:19 +03:00
Iván Sánchez Ortega
81b038926c Cleaning up map layers when map.remove() is run 2015-06-04 16:30:38 +02:00
Iván Sánchez Ortega
3a9da3bd7c Fixes #3431, GridLayer.setOpacity() behaviour on active tiles. 2015-06-04 15:02:28 +02:00
Vladimir Agafonkin
7bc37fe09a Merge pull request #3508 from Leaflet/gridlayer-bounds
Implement 'overlaps' spatial operator on bounds and use it on gridlayers
2015-06-04 15:23:54 +03:00
Iván Sánchez Ortega
8a352fbbbf Add an option to make the map's maxBounds non-bouncy. Fixes #1673. 2015-06-02 17:24:22 +02:00
Vladimir Agafonkin
bd1b88c1dd Merge pull request #3509 from Leaflet/prune-tiles-out-of-zoom
Gridlayer prunes all tiles when zooming out of minzoom/maxzoom.
2015-06-02 13:30:21 +02:00
Iván Sánchez Ortega
3b183f01bb Gridlayer prunes all tiles when zooming out of minzoom/maxzoom. 2015-06-02 12:58:38 +02:00
Iván Sánchez Ortega
c0384bbe21 Implement 'overlaps' spatial operator on bounds and use it on gridlayers 2015-06-02 12:35:31 +02:00
Taro Matsuzawa
4399b8f935 restore minZoom and maxZoom check on _update 2015-06-02 13:01:50 +09:00
vingiarrusso
376820ff63 use existing method on popup 2015-05-27 16:59:54 -07:00
vingiarrusso
fd1b295b95 add isPopupOpen method to layer 2015-05-27 16:34:06 -07:00
Alex Fedosov
9313733d3f make panInsideBounds accept array 2015-05-25 17:45:53 +06:00
Iván Sánchez Ortega
db8a790ae3 Persist marker dragging when removing/readding it. 2015-05-22 10:19:39 +02:00
Vladimir Agafonkin
8ffbb707c6 add layer getElement methods 2015-05-21 19:57:12 +03:00
Rik Vanmechelen
c4b6e79fa4 fix inertia when only moving on one axis, close #3432 2015-05-20 22:35:57 +03:00
Iván Sánchez Ortega
555c80f20e Wrap all SVG paths inside a <g> 2015-05-12 10:38:12 +02:00
Iván Sánchez Ortega
9274ee2b5f Graceful degradation of zoom-pan animations, fixes #3272. 2015-05-11 16:54:46 +02:00
Yohan Boniface
298a27fbe4 Add Polyline/Polygon.isEmpty method 2015-05-09 23:03:22 +02:00
Yohan Boniface
426f331874 Fix polygon.addTo(map) failing when latlngs was empty.
Since #3279 an empty polygon as a nested array [[]] as latlngs,
so _latlngs.length returns true.
2015-05-09 22:04:46 +02:00
Vladimir Agafonkin
b170695fe5 bump version to clear up confusion 2015-05-08 17:55:19 +03:00
Iván Sánchez Ortega
b849568ca0 Merge pull request #3233 from juliensoret/grabbingCursor
Fix cursor when dragging is set to false.
2015-05-08 16:32:24 +02:00
Vladimir Agafonkin
7603010f8b Merge pull request #3279 from Leaflet/nested-polygons
Ensure polygons latlngs are never flat (cf #2618)
2015-05-08 16:01:56 +03:00
Yohan Boniface
6aca7ef3c2 Add back L.Polyline.addLatLng 2015-05-08 14:53:21 +02:00
i.taratuhin
57d7dff81f fix vector in ie8 2015-05-08 18:03:24 +06:00
Yohan Boniface
2408cf2bb6 _flat is now a static method 2015-05-08 13:11:58 +02:00
Yohan Boniface
8b97b905e8 Merge branch 'master' into nested-polygons 2015-05-08 13:10:49 +02:00
Yohan Boniface
d53d958e81 Simpler approach for static method 2015-05-08 12:01:22 +02:00
Yohan Boniface
19d6008dfc Make L.Polyline._flat a static method 2015-05-08 11:52:00 +02:00
Vladimir Agafonkin
6c0557c868 Merge pull request #3386 from Leaflet/polyline-flat
Fix L.Polyline._flat returning true for a nested empty array
2015-05-07 11:08:37 +03:00
Vladimir Agafonkin
bb68b7342f Merge pull request #3390 from Leaflet/latlng-clone
Add LatLng.clone
2015-05-07 11:07:21 +03:00
Iván Sánchez Ortega
8f3a353d84 LatLng.wrap shall not drop altitude, closes #3420 2015-04-30 16:38:48 +02:00
Iván Sánchez Ortega
ea680ce21a Detect Firefox for Android as L.Browser.mobile 2015-04-30 13:20:19 +02:00
Vladimir Agafonkin
24ce6b3e8e Merge pull request #3410 from IvanSanchez/multiple-maxbounds
Prevent recursion on map.setMaxBounds
2015-04-29 13:52:25 +03:00
Iván Sánchez Ortega
286f192ca9 Prevent recursion on map.setMaxBounds 2015-04-29 11:07:45 +02:00
Iván Sánchez Ortega
71f93c44ef Fix leaflet/Leaflet#3404 2015-04-27 09:42:54 +02:00
Iván Sánchez Ortega
c3575be344 Implement options in L.Map.flyTo() 2015-04-23 09:18:59 +02:00
Iván Sánchez Ortega
4d70fe09a7 Implement L.Map.flyToBounds(), #3391 2015-04-22 01:27:25 +02:00
Yohan Boniface
8938754bd5 Merge branch 'master' into nested-polygons
Conflicts:
	spec/suites/layer/vector/PolygonSpec.js
2015-04-21 15:57:24 +02:00
Yohan Boniface
097128cfa7 Add LatLng.clone 2015-04-21 15:52:44 +02:00
Yohan Boniface
003e94ae11 Fix L.Polyline._flat returning true for a nested empty array 2015-04-18 17:41:36 +02:00
Nathan Cahill
91fe187ee7 add return statements to allow chaining 2015-04-17 00:49:49 -05:00
Nathan Cahill
794e64df41 add map.setMinZoom() and map.setMaxZoom() closes #3380 2015-04-16 18:39:40 -05:00
Yohan Boniface
3336bcbbe9 Fix Polygon.getCenter returning invalid LatLng when all points in same pixel 2015-04-12 18:43:04 +02:00
Yohan Boniface
a82c80ecd9 Fix Polyline.getCenter returning undefined with very small line 2015-04-12 11:25:46 +02:00
Yohan Boniface
7523aaafa0 Never try to run _updateOpacity if this._map is undefined 2015-04-11 15:09:33 +02:00
Yohan Boniface
37b87b4b21 Loop through parents when event src element is not in targets
For example, when using a DivIcon, we often add DOM elements in it,
which can then be the actual target of DOM events.
2015-04-10 07:59:59 +02:00
Vladimir Agafonkin
78d8a4d9f3 fix zoom out on azerty keyboard, close #3362 2015-04-09 21:53:12 +03:00
Stéphan Kochen
03c888c20f Add isLoading to GridLayer 2015-04-08 10:23:50 +02:00
Mstislav Zhivodkov
b6b4c07375 add opera12 to any3d 2015-04-07 10:43:12 +06:00
Mstislav Zhivodkov
4b757fe2cd change translate3d detection 2015-04-06 18:05:11 +06:00
Vladimir Agafonkin
cac1494f64 Merge pull request #2574 from tohaocean/patch-1
Opera does not support translate3d property
2015-04-06 13:21:40 +03:00
Alex Fedosov
56733af488 fix tile freeze in ie8 2015-04-01 16:42:46 +06:00
Iván Sánchez Ortega
558f8c3a06 Fix #3333 by catching the onScroll event on the map container 2015-03-30 16:31:18 +02:00
Vladimir Agafonkin
205575c932 Merge pull request #3303 from Trufi/panby-return
Map panBy always return map object
2015-03-18 18:52:23 +02:00
Vladimir Agafonkin
21a748123f Revert "e.button === 0 is the left mouse button."
This reverts commit 0d1716d796.
2015-03-18 13:09:04 +02:00
Patrick Arlt
6917733750 restore toggling marker popups, pass ESLint 2015-03-14 12:13:44 -07:00
Patrick Arlt
6ed939422c Merge branch 'group-popup' of github.com:Leaflet/Leaflet into popup-debugging 2015-03-14 10:23:50 -07:00
Patrick Arlt
52be81b18b Merge branch 'master' of github.com:Leaflet/Leaflet into popup-debugging 2015-03-14 10:22:25 -07:00
Mstislav Zhivodkov
b93d42880e map panBy always return map 2015-03-12 12:10:53 +06:00
Vladimir Agafonkin
7db3473727 fix typo, thanks @uniphil 2015-03-10 20:38:13 -07:00
Vladimir Agafonkin
a92c8a3c21 Merge pull request #3287 from Szunti/mousebutton
e.button === 0 is the left mouse button.
2015-03-08 00:15:12 +02:00
Yohan Boniface
250f03339b Fix popupAnchor not taken into account when passing L.Popup to bindPopup 2015-03-07 19:00:27 +01:00
Szunti
0d1716d796 e.button === 0 is the left mouse button. 2015-03-06 20:25:04 +01:00
Yohan Boniface
0d0269ac15 Remove Polyline.addLatLng and Polyline.spliceLatLngs
Those method are not consistent (or too complexe) among
the supported Polygon/Polyline (cf #3279)
2015-03-06 09:05:50 +01:00
Vladimir Agafonkin
bba39b3eba Merge pull request #3275 from Jakobud/bug/keyboard-event-prevent-map-refocus
Prevent map refocus if control click event is from the keyboard
2015-03-05 18:48:15 +02:00
Jake Wilson
aae1df5d49 Fixed typo in comment 2015-03-04 19:00:52 -07:00
Jake Wilson
39425924ac Added truthy check to the event. 2015-03-04 18:58:51 -07:00
Yohan Boniface
602cff077f Ensure polygons latlngs are never flat (cf #2648) 2015-03-04 18:14:51 +01:00
Vladimir Agafonkin
455fbb087b fix maxNativeZoom regression, close #3096 2015-03-04 11:46:03 +02:00
Jake Wilson
8842385c37 Prevent map refocus if control click event is from the keyboard, which is determined/assumed by the click X,Y being at 0,0. 2015-03-03 22:17:24 -07:00
Vladimir Agafonkin
4dc3a18217 Merge pull request #3270 from Leaflet/fix-freeze
Fix zoom animation freeze race condition
2015-03-03 15:07:44 +02:00
Vladimir Agafonkin
142e0661b1 fix touch zoom regression 2015-03-03 15:04:03 +02:00
Vladimir Agafonkin
f27ead251a Merge pull request #3264 from yohanboniface/drag-original-event
Forward original event on drag
2015-03-02 21:38:51 +02:00
Vladimir Agafonkin
35860a0213 fix marker event data 2015-03-02 19:15:52 +02:00
John Firebaugh
a865d2b649 CSS-based outline prevention 2015-03-02 19:03:39 +02:00
Vladimir Agafonkin
63753d8564 prevent focus outline when dragging objects 2015-03-02 19:03:38 +02:00
Vladimir Agafonkin
0a68b25ce5 fix Canvas vector events 2015-03-02 19:03:38 +02:00
Vladimir Agafonkin
43c3f01a1a cleaner DOM event handling in Map 2015-03-02 19:03:38 +02:00
Vladimir Agafonkin
34bc7fa4ea switch markers to event delegation API 2015-03-02 19:03:38 +02:00
Vladimir Agafonkin
22c97d1b33 use new event delegation API in ImageOverlay 2015-03-02 19:03:38 +02:00
Vladimir Agafonkin
8e7bbff6d8 switch SVG paths to new delegation API 2015-03-02 19:03:38 +02:00
Vladimir Agafonkin
b149f2d754 Layer add/removeInteractiveTarget methods
registers DOM elements for event delegation
2015-03-02 19:03:37 +02:00
Vladimir Agafonkin
bbc3f2fab1 fix zoom anim freeze race condition, close #2693, close #2478 2015-03-02 15:26:05 +02:00
Vladimir Agafonkin
4c8ffadf30 don't animate negligible touch movements, close #2519 2015-03-02 14:48:09 +02:00