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
John Firebaugh
a0c6363bb6
Invalidate _initialCenter along with size ( fixes #1919 )
2013-08-05 14:09:09 -07:00
John Firebaugh
4fdf76ee90
Support center-oriented scroll/double-click zoom
2013-08-05 12:29:55 -07:00
Russell Davis
f568768142
Fix rounding issues in Map::invalidateSize
2013-08-01 23:14:11 -07:00
Vladimir Agafonkin
8d925b6acb
fix map scrolling right on click with horizontal scroll on page, close #1901
2013-07-25 12:49:16 +03:00
Vladimir Agafonkin
42a78fd867
fix infinite loop in getBounds and setMaxBounds, close #1895 , close #1866
2013-07-25 12:42:13 +03:00
Vladimir Agafonkin
75c133082c
fix Map min/maxZoom not overriding TileLayer-derived min/max, close #1848
2013-07-12 15:05:59 +03:00
Vladimir Agafonkin
a4c6c03550
break line to fix jshint
2013-07-12 12:46:10 +03:00
Vladimir Agafonkin
5c1a34979e
fix fakeStop in IE<9, close #1850 hopefully
2013-07-12 12:41:08 +03:00
Vladimir Agafonkin
5829963014
do not animate zoom if nothing to animate yet, close #1484 , close #1845
2013-07-11 15:59:13 +03:00
Vladimir Agafonkin
183c8a2cb7
merge #1834 (passing options to setMaxBounds)
2013-07-11 13:03:41 +03:00
John Firebaugh
4839c44509
Fire layerremove after removing the layer
...
This is consistent with 0.5.x and seems more useful. Updating
the state of a layer switcher using map.hasLayer in response
to layeradd and layerremove events is my use case.
2013-07-08 16:53:04 -07:00
David Beitey
c663392697
Allow options to be passed to Map.setMaxBounds such that they can be used when setting the view.
2013-07-05 14:12:09 +10:00
danzel
fef108cc8e
Fix worldCopyJump if you start zoomed all the way out. Fixes #1831
2013-07-05 14:35:48 +12:00
danzel
71e851fa40
Remove trailing comma, fixes IE7. Refs #1755
2013-07-01 15:56:04 +12:00
John Firebaugh
725124931f
preventDefault on MozMousePixelScroll
...
This prevents scrolling without changing the zoom delta
calculations.
Fixes #1794
2013-06-27 10:28:13 -04:00
John Firebaugh
bc40266bc9
Revert "Use "wheel" event where supported ( #1788 )"
...
This reverts commit a784c560e5
.
2013-06-27 10:27:42 -04:00
John Firebaugh
7355070958
Merge pull request #1789 from Leaflet/wheel
...
Use "wheel" event where supported (#1788 )
2013-06-25 10:40:14 -07:00
John Firebaugh
a784c560e5
Use "wheel" event where supported ( #1788 )
2013-06-25 13:31:51 -04:00
Vladimir Agafonkin
55a36e2fe8
fix regression of not being able to addLayer in initHooks
2013-06-25 11:25:10 -04:00
John Firebaugh
cb4b4ff343
Remove preventDefault from BoxZoom too
2013-06-25 10:12:02 -04:00
Vladimir Agafonkin
89d0730254
fix Android firing click twice on buttons, close #1785 , related #1694
2013-06-25 09:45:35 -04:00
Vladimir Agafonkin
28ba41eced
disable tap hacks on IE, ref #1694
2013-06-24 23:11:51 -04:00
Vladimir Agafonkin
e72e2476f8
remove leftover code
2013-06-24 22:38:38 -04:00
Vladimir Agafonkin
f9ea4758f8
move all tap hacks code into a separate handler, close #1781
2013-06-24 18:17:25 -04:00
Vladimir Agafonkin
a12bd9474f
call init hooks before adding layers (fixes zoom anim regression)
2013-06-24 17:37:31 -04:00
Vladimir Agafonkin
5a7420dd1a
Propagate popup clicks outside of map container, close #301
2013-06-24 15:19:17 -04:00
Tom MacWright
130d6d0fac
Ignore pan keyboard event if the map is animating. Fixes #1710
2013-06-24 13:50:24 -04:00
Vladimir Agafonkin
6c061b2995
fix zoom not working with L_DISABLE_3D regression, close #1756
2013-06-24 11:32:51 -04:00