Commit Graph

536 Commits

Author SHA1 Message Date
AndreyGeonya
18938b0319 #2865, fixed bug with geometry/staticMarker click event after map dragging 2014-08-23 01:00:42 +03:00
AndreyGeonya
31a09930b4 #1871, zoom limited 2014-08-11 17:53:59 +03:00
AndreyGeonya
f7ac72d073 issue #1871 fixed, set this._zoom on map init whenever options.zoom is provided 2014-08-11 15:14:37 +03:00
AndreyGeonya
a321406cf8 #2501, tab fixed 2014-08-05 17:13:10 +03:00
AndreyGeonya
f5cfddb60d #2501, wheelDebounceTime option added 2014-08-05 16:49:33 +03:00
AndreyGeonya
fd7ebcb5aa Issue #2619 fixed. Now Map.js/_fireMouseEvent checks dragging.moved() on moved object instead on map 2014-08-05 00:09:01 +03:00
Daniele Orrù
410068c08f Fixed 'bounceAtZoomLimits' when you don't start pinching from max\min level 2014-07-13 11:41:52 +02:00
Hans Kristian Flaatten
5dc4c1ade1 Replace custom _onPreventDefault function 2014-04-30 20:55:57 +02:00
Hans Kristian Flaatten
3696926bef Fix #2658 ZoomBox not disappearing on right click 2014-04-30 19:58:30 +02:00
danzel
3257038d70 Change how we work out if a pan is ok. 2014-04-08 09:30:25 +12:00
danzel
7d98b2e6d9 Fix the warnings 2014-04-07 16:11:33 +12:00
danzel
7e40b07d7d Try not set a huge translate when a pan happens. Fixes #2602 2014-04-07 13:51:03 +12:00
Vladimir Agafonkin
9a2399ee50 fix freeze on multiple setViews, close #2521, close #2236, close #2485 2014-03-11 19:16:23 +02:00
Marc Tobias Metten
3a391026f2 Doubleclick and scrollwheel zoom already can be forced to remained centered on map center. Now the same for touchzoom 2014-03-08 02:29:51 +01:00
Vladimir Agafonkin
1a7b12604b run view reset before load, fix #2510 2014-03-05 23:27:32 +02:00
Wenqer
a303658f8d Added map events on touch devices
Simulate mouseup and mousedown on map on touch device.
2014-03-03 17:07:25 +02:00
Vladimir Agafonkin
97a7f1d5a4 fix click propagating through popup regression, close #2500 2014-02-28 23:15:28 +02:00
Brian Stoner
255a3d7fb8 remove parens from ternary if 2014-02-26 19:52:21 -05:00
Brian Stoner
86e06dbd79 enforce maxZoom before applying paddingOffset, fixes #2489 2014-02-26 17:21:49 -05:00
Vladimir Agafonkin
b1f70b5c1c fix layer.addTo(group), add layer removeFrom, #2420 2014-02-24 20:18:44 +02:00
Steve
c339a7e808 allow shift key to be active 2014-02-12 09:18:09 -05:00
Steve Kashishian
37519fd6ec don't capture keydowns if modifier key is active 2014-02-10 21:45:19 -05:00
Adam J. Gamble
579a429c3b change unload order 2014-01-28 17:20:08 +00:00
Vladimir Agafonkin
bce7c49c17 Merge pull request #2377 from Leaflet/accel
Smarter hardware acceleration
2014-01-28 03:22:31 -08:00
Vladimir Agafonkin
187d9c2368 move Safari hacks to CSS, do not optimize contrast in Chrome 2014-01-27 18:18:04 +02:00
Vladimir Agafonkin
9020f4d41e greatly simplify zoom animation calculations - finally!!! 2014-01-15 17:15:52 +02:00
Vladimir Agafonkin
6d5fe1f724 a bit cleaner zoom anim logic 2014-01-13 20:54:13 +02:00
Vladimir Agafonkin
b5569dd0c3 never stack transforms, simpler grid layer anim, ref #1705 2014-01-10 19:11:59 +02:00
Vladimir Agafonkin
646850f5f2 stop panning animation correctly, better inertia, close #2360 2014-01-10 13:29:37 +02:00
Vladimir Agafonkin
3d34f27df8 normalize latlng argument in Map wrapLatLng 2014-01-02 16:15:00 +02:00
Vladimir Agafonkin
5923a64ec4 add Map distance method, close #1442 2014-01-02 16:13:03 +02:00
Vladimir Agafonkin
7d18adbe73 don't postfix createPane name, #1742 2013-12-30 23:39:30 +02:00
Vladimir Agafonkin
2000734658 do not fail on unnamed createPane, #1742 2013-12-30 20:16:21 +02:00
Vladimir Agafonkin
76f9c7ae7f add Map createPane/getPane methods, close #1742 2013-12-30 19:17:52 +02:00
Vladimir Agafonkin
dd1b9617dd add syntactic sugar to DomEvent.on/off 2013-12-30 17:40:23 +02:00
Vladimir Agafonkin
bc9721b3be simplify pane structure (remove objectsPane, not necessary) 2013-12-28 03:38:59 +02:00
Vladimir Agafonkin
ee3f2f8b1e stop propagation explicitly; marker and vector mouseup
this way we know what events won’t propagate to Map and this behavior
is consistent across layers
2013-12-28 03:12:18 +02:00
Vladimir Agafonkin
7ca19b59ea clean up Marker mouse events code 2013-12-27 19:27:46 +02:00
Vladimir Agafonkin
c354113293 fix build (fire preclick even with no click listeners) 2013-12-27 18:46:10 +02:00
Vladimir Agafonkin
93214d7e3c clean up mouse events handling code 2013-12-27 18:36:24 +02:00
Vladimir Agafonkin
e7898584c3 more BoxZoom cleanup 2013-12-27 18:17:51 +02:00
Vladimir Agafonkin
e27b295261 clean up BoxZoom, fix cursors #1813 2013-12-27 17:22:16 +02:00
Vladimir Agafonkin
6edc39e19a revert ce29ac59 2013-12-23 17:21:12 +02:00
Vladimir Agafonkin
9e6a747f6f minor events-related cleanup 2013-12-21 09:53:26 +01:00
Vladimir Agafonkin
ce29ac59a9 fire load after viewreset/moveend to fix Canvas rendering 2013-12-19 18:04:55 -05:00
Vladimir Agafonkin
1dfec0a021 shortcut hasEventListeners as listens 2013-12-19 17:09:32 -05:00
Vladimir Agafonkin
fd98197556 require ctx in DomEvent off if on had it (breaking!!!) 2013-12-18 12:03:21 -05:00
Vladimir Agafonkin
21cfd7f3d9 replace Events mixin with Evented inheritance 2013-12-17 14:07:21 -05:00
Vladimir Agafonkin
4e9b8a42e9 call addLayers after initHooks where anim is detected, fixes #2281 2013-12-11 18:13:00 -05:00
Vladimir Agafonkin
f1d2b0d5df revert commenting out watch for terser code #2274 2013-12-10 11:17:40 +01:00
Yohan Boniface
369290d90d Firefox has a Object.prototype.watch method 2013-12-09 15:59:20 +01:00
Vladimir Agafonkin
7f03570b8d move Layer-related Map code from Map.js to Layer.js 2013-12-06 15:10:29 +02:00
Vladimir Agafonkin
d55ffb07ec cleaner and more consistent zoom animation options 2013-12-06 15:10:29 +02:00
Vladimir Agafonkin
d70d03dbe1 more implicit falsy options to save bytes / memory; 2013-12-06 15:10:29 +02:00
Vladimir Agafonkin
edca4a6075 groups cleanup; fix getBounds when containing CircleMarkers 2013-12-06 15:10:28 +02:00
Vladimir Agafonkin
57bfbc45e6 simpler Map getMinZoom 2013-12-06 15:10:28 +02:00
Vladimir Agafonkin
36b8c7cf4d move zoom restricting logic to GridLayer 2013-12-06 15:10:28 +02:00
Vladimir Agafonkin
4011a6199f move add/removeLayer logic to Layer; ditch tilelayersload event 2013-12-06 15:10:28 +02:00
danzel
46a379adb7 A transitionEnd event only finished a zoom animation if it is for a transform. Fixes #2255 2013-12-06 14:54:48 +13:00
Vladimir Agafonkin
6b9731283d add and use DomUtil.remove 2013-12-05 14:35:39 +02:00
Vladimir Agafonkin
b151ceb63f remove LatLng constants, add move maxMargin to equals arguments 2013-12-03 19:09:36 +02:00
Vladimir Agafonkin
e43873298c update wrapping/bounding logic to allow negative coords 2013-12-02 19:16:01 +02:00
Vladimir Agafonkin
a03bfb753e add CRS & Map wrapLatLng, fix GridLayer bounding 2013-12-02 19:16:01 +02:00
Vladimir Agafonkin
627ca511d0 add Map getWorldPixelSize, remove hardcode for worldCopyJump 2013-12-02 19:16:00 +02:00
Ilya Zverev
0859c48fbf do not change internal properties in invalidateSize() when map is not loaded 2013-11-29 14:46:05 +04:00
Vladimir Agafonkin
88e60af971 fix shift-double-click on maps with vector layers #2189 2013-11-14 18:50:29 +02:00
Vladimir Agafonkin
fab5c3b676 adjust whitespace and add some comments 2013-11-14 18:04:39 +02:00
Vladimir Agafonkin
507e6c7aa5 proper rounding of max bounds offsets 2013-11-14 17:52:31 +02:00
Vladimir Agafonkin
80607c6044 reimplement max bounds with proper zooming 2013-11-14 17:45:47 +02:00
Vladimir Agafonkin
be42f7a3b6 Merge branch 'patch-1' of https://github.com/kapouer/Leaflet into maxbounds
* 'patch-1' of https://github.com/kapouer/Leaflet:
  test Map#setMaxBounds and Map#panInsideBounds
  panInsideBounds: fit or center, pass options, remove boundsMinZoom
2013-11-14 14:13:45 +02:00
Vladimir Agafonkin
07e8198ef6 add shift-double-click to zoom out, close #2185 2013-11-13 22:13:39 +02:00
Vladimir Agafonkin
3618f404f5 Merge branch 'invalidateSize' 2013-11-13 21:50:02 +02:00
John Firebaugh
33263e537d Add debounceMoveend option to invalidateSize 2013-11-13 10:53:34 -08:00
John Firebaugh
248c5e7c8f Don't delay moveend event on invalidateSize
This causes unnecessary nondeterminism in the sequence of
events emitted. Instead, the caller should be responsible for
throttling, as e.g. Map#_onResize does.
2013-11-11 14:02:00 -08:00
Vladimir Agafonkin
45181ce40b move old IE styles to leaflet.css, ditch leaflet.ie.css, close #2159 2013-11-08 16:44:14 +02:00
Vladimir Agafonkin
ddbb01c3da add distance to dragend event data, close #2158, ref #872 2013-11-06 21:17:35 +02:00
Vladimir Agafonkin
1aba51be01 Merge pull request #2072 from trevorpowell/master
Don't bounce near zoom limits on touch zoom
2013-10-24 12:12:57 -07:00
Trevor Powell
0574301113 Fixing long line 2013-10-24 13:34:17 -05:00
Trevor Powell
3b79dd816b Adding bounceAtZoomLimits option 2013-10-24 13:26:52 -05:00
Vladimir Agafonkin
a8baeec367 add timestamp to geolocation data, #584 2013-10-18 18:47:04 +03:00
Vladimir Agafonkin
c3734e5a91 add maxZoom to Map fitBounds options, close #2101 2013-10-17 00:17:31 +03:00
Jérémy Lal
2974cacff4 panInsideBounds: fit or center, pass options, remove boundsMinZoom
Deltas are calculated on x, y pixel coordinates separately.
Options are propagated from setMaxBounds to panBy.
No panBy loops. Fixes #1908.
2013-10-14 14:40:45 +02:00
Trevor Powell
7a907ba2cf Fixing line too long error 2013-10-06 01:39:01 -05:00
Trevor Powell
7541d64a71 Do not scale above minzoom and maxzoom in touch zoom action 2013-10-06 01:20:45 -05:00
danzel
bf3b660bef Redo MsTouch to be pointer events with msPointer fallback for IE10. fixes #2037 2013-10-04 15:06:53 +13:00
Vladimir Agafonkin
2250cee6ec allow setZoom before setView, make setView zoom optional, close #2056, close #1449 2013-09-30 15:00:46 +03:00
Vladimir Agafonkin
6c77fe64c2 fix IE6-8 throwing error on map.remove(), close #2015 2013-09-13 18:14:05 +03:00
Vladimir Agafonkin
3d5dbe7dfc fix accidentally commented out fix, #1980 2013-08-29 00:51:00 +03:00
Vladimir Agafonkin
62b23b42e0 fix resize tracking on multiple maps, close #1980 2013-08-28 17:56:43 +03:00
Dag Jomar Mersland
5180cce838 check for undefined el.tagName prevents iPad error 2013-08-21 13:30:10 +02:00
Dag Jomar Mersland
d78fb49943 Fix for iPad, where el.tagName was undefined when clicking on labels. 2013-08-19 10:14:36 +02:00
Vladimir Agafonkin
1f6533d0f5 Merge pull request #1982 from fastrde/FixworldCopyJump
Fix worldCopyJump set Center and Zoom first
2013-08-18 01:21:31 -07:00
fastrde
b4ed2bf282 map.once doesn't get called when the map is already initailized and drag.enabled is called. 2013-08-17 12:13:47 +02:00
fastrde
3370942b36 call _onViewReset() not until map is loaded (center and zoom are set) 2013-08-17 02:08:24 +02:00
fastrde
5eacbbf105 Added Keycode 171 to support Firefox 22 2013-08-17 00:38:51 +02:00
Vladimir Agafonkin
4609d482f2 some tweaks to #1951 2013-08-09 14:00:44 +03:00
fastrde
c1e64c2479 Fix for zoomBox fires map click Event (Issue #1884) 2013-08-08 15:15:39 +02:00
John Firebaugh
65a311a822 Return this even when short-circuiting 2013-08-06 10:27:27 -07:00
Vladimir Agafonkin
e18b7eded6 Merge pull request #1931 from russelldavis/fix-invalidate-size
Fix rounding issues in Map::invalidateSize
2013-08-06 02:43:40 -07:00
Vladimir Agafonkin
8611e22005 Merge pull request #1939 from jfirebaugh/zoom
Support center-oriented scroll/double-click zoom
2013-08-06 01:55:08 -07:00