Vladimir Agafonkin
ddce7b3977
fix error dragging outside of window in FF, close #2610
2014-04-28 16:01:45 +03:00
Vladimir Agafonkin
71b138b56c
Merge pull request #2621 from bennlich/patch-2
...
Allow access to L.TileLayer imagedata
2014-04-22 23:40:25 +03:00
Benny Lichtner
aa073a260f
removed trailing whitespace
2014-04-11 12:26:21 -07:00
Benny Lichtner
3c86f6cca4
tile CORS headers now a layer option
2014-04-10 11:16:30 -07:00
Benny Lichtner
21b14fd91d
Allow access to L.TileLayer imagedata
...
See https://developer.mozilla.org/en-US/docs/HTML/CORS_Enabled_Image . Seemed like such a small change it could maybe go in core instead of writing an entire plugin for it, but I also doubt it's a common use case. I use this to pull in data that's stored in tiles (e.g. elevation data, soil composition).
2014-04-09 15:54:02 -07:00
Eric Theise
a61fcd4226
Update GridLayer.js
2014-04-09 17:23:28 -04: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
Robin van Baalen
c5e781b6a0
Fix for #2606 : Cannot read property x of undefined
...
Only setPosition if _getPos actually returns a valid position to this._newPos
2014-04-02 12:23:15 -07:00
danzel
1f08c65794
Round point so that circles work again :)
2014-04-02 10:40:42 +13:00
Vladimir Agafonkin
3ded683817
Merge pull request #2597 from Otouto/pointer-events
...
proper svg pointer-events value
2014-03-28 17:49:45 +02:00
Dmitry Lutsik
67100000fa
proper svg pointer-events value
2014-03-28 15:23:11 +02:00
Nathan Mascitelli
83aee92a06
Updated resetStyle to return this as documented.
2014-03-28 08:16:59 -04:00
Nathan Mascitelli
e7b016812b
Added return statement to setStyle in GeoJSON so the method returns this as documented.
2014-03-28 08:16:30 -04:00
AndreyGeonya
52fff05eb8
circle marker radius redrawing fixed
2014-03-24 19:20:34 +02:00
Vladimir Agafonkin
2af906fc9b
Merge pull request #2547 from shortspider/popup.isOpen
...
Added method to indicate if the popup is open or closed.
2014-03-19 16:25:29 -07:00
Nathan Mascitelli
3bdde9d7a3
Simplified method.
...
On advice from mourner.
2014-03-19 17:34:49 -04:00
Nathan Mascitelli
ed06a52697
Fixed whitespace.
...
Second crack at fixing the whitespace.
2014-03-19 16:40:55 -04:00
Vladimir Agafonkin
b626553bc2
Merge pull request #2524 from jeffsmale90/dasharray-offset
...
Added Dasharray offset
2014-03-19 11:56:15 -07:00
Nathan Mascitelli
5a4deff548
Fixed whitespace.
2014-03-19 14:52:49 -04:00
Jeff Smale
17434c5b0c
Renamed dashArrayOffset to dashOffset for consistency
2014-03-17 12:54:22 +13:00
Nathan Mascitelli
4512601f38
Added method to indicate if the popup is open or closed.
2014-03-16 12:23:17 -04:00
Benjamin J DeLong
84b92098f4
Control Layers constantly trigger mouseover and mouseout
...
fix to expand and collapse constantly firing: mouseenter and mouseleave
2014-03-14 16:18:44 -06: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
b8897f26fb
instantiate default renderers in map, fix #2523
2014-03-07 14:52:11 +02:00
Jeff Smale
d05a049dde
Fixed indentation of dasharrayoffset code
2014-03-07 12:35:49 +13:00
Jeff Smale
b1e08ab8c2
Added stroke-dashArray to path options
2014-03-07 11:50:44 +13:00
Vladimir Agafonkin
1a7b12604b
run view reset before load, fix #2510
2014-03-05 23:27:32 +02:00
justraines@gmail.com
50dbfa30a8
add alt tags to tiles
2014-03-03 17:52:41 -05:00
justraines@gmail.com
c1870976e6
set alt attribute on tiles to a null value so screen readers no longer read url for tiles
2014-03-03 17:46:54 -05: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
Nathan Ridley
a0bf3fe798
Update Draggable.js
2014-03-01 21:58:56 +00:00
Nathan Ridley
902d24bd85
Fix for touch-sensitive browsers detecting drag on tap
...
Chrome 33 on Android seems to very commonly detect a 1 pixel drag movement during a standard touch tap. This fix prevents a drag from beginning until the X and Y drag offset is at least 3 pixels in total.
2014-03-01 16:14:26 +00:00
Vladimir Agafonkin
97a7f1d5a4
fix click propagating through popup regression, close #2500
2014-02-28 23:15:28 +02:00
Vladimir Agafonkin
665e766608
simplify optimized LatLngBounds extend
2014-02-27 19:03:00 +02:00
Antoine Pultier
63e22f0ed0
Manage empty L.LatLngBounds objects
2014-02-27 19:03:00 +02:00
Antoine Pultier
39af6fb5d7
L.LatLngBounds.extend return to Math.min/max
2014-02-27 19:03:00 +02:00
Antoine Pultier
ed44604411
L.LatLngBounds.extend optimization
2014-02-27 19:03:00 +02:00
Vladimir Agafonkin
f8ee421ca4
Merge pull request #2419 from danzel/vector-during-zoom
...
Fix adding Vector layers during a zoom animation
2014-02-27 17:28:09 +02:00
Vladimir Agafonkin
860fb92461
Merge pull request #2418 from danzel/ie8-fixes
...
IE8 fixes.
2014-02-27 17:27:44 +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
Vladimir Agafonkin
a70ab6e613
fix whitespace
2014-02-24 18:42:47 +02:00
Vladimir Agafonkin
893b6fa2f0
add LatLng wrap method back
2014-02-24 17:20:47 +02:00
Vladimir Agafonkin
fcc9f41df4
fix whitespace
2014-02-24 16:00:15 +02:00
Vladimir Agafonkin
431e775893
Merge pull request #2370 from cusspvz/patch-1
...
Events.js: Check if array exists before loop
2014-02-24 15:59:32 +02:00
Vladimir Agafonkin
5db33435c5
make options arg in GeoJSON.geometryToLayer optional, #2420
2014-02-24 15:55:25 +02:00
Vladimir Agafonkin
f574bf5114
Merge pull request #2482 from perliedman/canvas-update-2476
...
Call layer's _update like SVG renderer does, fixes #2476
2014-02-22 16:49:49 +02:00
Per Liedman
501d61ce98
Call layer's _update like SVG renderer does, fixes #2476
2014-02-22 13:31:13 +01:00
Alexander Dimitrov
687c0b75a4
Move _containsPoint method to CircleMarker for canvas renderer
...
CircleMarker is the parent of Circle as of 508a75f7a8
and should have _containsPoint instead.
Fixes no method '_containsPoint' error when hovering on a map with a CircleMarker.
2014-02-22 00:24:15 +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
danzel
d5a3112852
Another break with adding and removing tile layers.
2014-01-30 16:35:08 +13:00
danzel
2396a10282
Fix adding and immediately removing a Layer from the map when the map is never initialized
2014-01-30 16:15:03 +13:00
danzel
4a556886fb
Fix adding Vector layers during a zoom animation. Fixes #2416
2014-01-30 11:14:57 +13:00
danzel
4e84f9ec1f
IE8 fixes.
...
Events on VML elements actually work :)
2014-01-30 11:12:07 +13:00
Vladimir Agafonkin
064902665e
Merge pull request #2413 from danzel/propagation-fixes
...
Propagation fixes
2014-01-29 02:34:03 -08:00
danzel
8cc7404f53
This should be oldLatLng, even if latlng is wrong, let's have this be right. refs #2412 #1423
2014-01-29 14:51:55 +13:00
danzel
5916db8678
Don't crash if a marker is removed from the map before it fires a mouseout event.
2014-01-29 14:45:27 +13:00
danzel
595e8d2537
Allow stacking propagations. L.MarkerCluster uses this as follows:
...
Marker propagates to FeatureGroup.
That FeatureGroup propagates to MarkerClusterGroup.
Then users add listeners on the MarkerClusterGroup
2014-01-29 14:43:52 +13:00
danzel
e2d9a97836
Add oldLatlng parameter to Marker move event, will allow MarkerCluster to support moving markers.
2014-01-29 11:33:08 +13:00
Adam J. Gamble
579a429c3b
change unload order
2014-01-28 17:20:08 +00:00
Vladimir Agafonkin
47166b62e5
fix GeoJSON coordsToLatLng
2014-01-28 13:26:58 +02:00
Vladimir Agafonkin
bce7c49c17
Merge pull request #2377 from Leaflet/accel
...
Smarter hardware acceleration
2014-01-28 03:22:31 -08:00
Vladimir Agafonkin
02d5896740
remove leftover code
2014-01-27 18:21:06 +02: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
cf35d69655
size-based tile layer HW hack; use top/left for tiles everywhere
2014-01-27 17:54:12 +02:00
Vladimir Agafonkin
9020f4d41e
greatly simplify zoom animation calculations - finally!!!
2014-01-15 17:15:52 +02:00
Vladimir Agafonkin
f081ff2908
fix build
2014-01-14 17:20:58 +02:00
Vladimir Agafonkin
cd0c9ff8a5
position the hack absolutely
2014-01-14 17:18:51 +02:00
Vladimir Agafonkin
322039ea85
move the hack to tile container reset
2014-01-14 17:15:58 +02:00
Vladimir Agafonkin
592d2ce8f4
horrible hacks to fix iOS Safari bugging out hw-acceleration
2014-01-14 16:29:39 +02:00
Vladimir Agafonkin
cfde916edf
make sure tiles in iOS Safari are not hw-accelerated layers
2014-01-14 16:28:40 +02:00
Vladimir Agafonkin
6e5d3e26e6
use translate2d instead of top/left for tiles when hw-accelerated
...
this fixes gaps between tiles in Safari and makes iOS Safari butter
smooth when zooming
2014-01-14 16:26:58 +02:00
Vladimir Agafonkin
22226c20c2
simpler tile bg buffer loading logic
2014-01-13 21:52:49 +02:00
Vladimir Agafonkin
6d5fe1f724
a bit cleaner zoom anim logic
2014-01-13 20:54:13 +02:00
Vladimir Agafonkin
f32173573a
do not stack transforms for real now, close #1705
2014-01-13 17:10:58 +02:00
José Moreira
92890bed12
Events.js: Check if array exists before loop
2014-01-13 12:31:42 +00:00
Vladimir Agafonkin
1acffc5a3d
don't disable propagation on closeButton, close #2351
2014-01-11 15:00:28 +02:00
Vladimir Agafonkin
1ed9924288
fix ImageOverlay on low zooms with Mercator distortion
2014-01-11 14:59:56 +02:00
Vladimir Agafonkin
48d5bac476
clean up image overlay, fix setting opacity/url when not added
2014-01-11 02:51:55 +02:00
Vladimir Agafonkin
2c90de5076
cleaner ImageOverlay animation
2014-01-10 23:25:31 +02:00
Vladimir Agafonkin
6f5c17fae0
more consistent renderer anim calculations
2014-01-10 21:59:25 +02:00
Vladimir Agafonkin
cc34737a93
remove DomUtil getTranslateString/getScaleString
2014-01-10 20:26:20 +02:00
Vladimir Agafonkin
d22f75cc36
simpler renderer zoom anim
2014-01-10 20:19:01 +02:00
Vladimir Agafonkin
cd746192b5
stack transforms properly for tile layer anim, ref #1705
2014-01-10 19:24:39 +02:00
Vladimir Agafonkin
b5569dd0c3
never stack transforms, simpler grid layer anim, ref #1705
2014-01-10 19:11:59 +02:00
Vladimir Agafonkin
758679ab69
add DomUtil.setTransform for translate+scale ops
2014-01-10 16:05:58 +02:00
Vladimir Agafonkin
30f86b11e3
improve zoom perf by avoiding recompositing in grid layers
2014-01-10 14:34:44 +02:00
Vladimir Agafonkin
3b57b9a040
set the source in bindPopup(popup), close #2354
2014-01-10 14:05:21 +02:00
Vladimir Agafonkin
646850f5f2
stop panning animation correctly, better inertia, close #2360
2014-01-10 13:29:37 +02:00
Vladimir Agafonkin
7e98b33db3
update year to 2014
2014-01-08 20:40:04 +02:00
Vladimir Agafonkin
be85ff304c
fix Canvas layer redawing
2014-01-03 20:14:24 +02:00
Vladimir Agafonkin
ae8bc579a4
fix Circle in flat projections
2014-01-03 18:08:19 +02:00
Vladimir Agafonkin
8f4baaed14
don't render circles near poles or with 0 radius
2014-01-03 17:37:51 +02:00
Vladimir Agafonkin
5e441018f8
fix true mercator regression
2014-01-03 17:37:16 +02:00
Vladimir Agafonkin
192973093f
fix ellipse disappearing with big radiusY
2014-01-03 15:27:18 +02:00