Commit Graph

2546 Commits

Author SHA1 Message Date
kdeloach
c97c48325a Remove global variable that disables dragging for all maps during zoom
Starting a zoom animation will disable dragging for all maps on the
page. Only the map that is being zoomed should have dragging disabled.

This fix removes a global static variable which is redundant since
the map pane already has a css class assigned to it for the duration of
the zoom animation.

Fixes #2539
2014-11-21 14:41:00 -05:00
Vladimir Agafonkin
e5ee31d6b5 Merge pull request #3048 from CloudNiner/feature/fix-2318
Closes #2318: getMaxZoom returns prev layer on baselayerchange
2014-11-21 21:01:21 +02:00
CloudNiner
703f9a47d9 Closes #2318: getMaxZoom returns prev layer on baselayerchange
Remove all old layers before adding new ones to avoid
the old properties being returned in the baselayerchange handler.
2014-11-21 13:49:10 -05:00
kerryarts
ff10d00297 Check for null before setting the zindex, and instead keep it null initially. This way calls to setZIndex() wont fail if passed null. 2014-11-21 17:11:10 +13:00
kerryarts
0daf28fb4f Fix _bringToFront/Back implementation for VML renderer 2014-11-21 09:41:02 +13:00
kerryarts
756888cee7 default zIndex to be a valid value to fix exception in ie8 2014-11-20 17:11:02 +13:00
flemenach
8c606358cc Fix inertia animation with worldCopyJump enabled 2014-11-18 09:32:46 +01:00
Yohan Boniface
f41f37c9c0 More compact code 2014-11-14 17:12:15 +01:00
Yohan Boniface
86de51ed9e We don't need an option for the zoom factor 2014-11-14 14:16:41 +01:00
Yohan Boniface
44a10690a7 Implement fast zoom on minus/plus keydown with shiftKey 2014-11-14 12:38:09 +01:00
John Firebaugh
87c7d1d563 No-op Control#remove if not on a map (fixes #2877) 2014-11-13 11:25:49 -08:00
John Firebaugh
0b86fa3266 Remove control from existing map in onAdd (fixes #3020) 2014-11-13 10:49:43 -08:00
John Firebaugh
ef96884021 Ensure parent init hooks are called (fixes #2545) 2014-11-12 14:49:46 -08:00
John Firebaugh
bad49e7612 Add autoClose option to Popup
Fixes #2716
Fixes #1853
2014-11-12 12:52:50 -08:00
John Firebaugh
ad12e33dd9 Fix trailing whitespace 2014-11-12 11:30:43 -08:00
John Firebaugh
82934f95d9 Merge pull request #3008 from snkashis/imgoverlay_style
allow for setStyle option re: opacity on FeatureGroup to reach ImageOverlays
2014-11-12 10:50:11 -08:00
John Firebaugh
269700925a Merge pull request #3009 from snkashis/img_overlay_evt
add interactive option for events on ImageOverlay
2014-11-12 10:41:10 -08:00
Vladimir Agafonkin
de868d6a83 don't require DomEvent for attrib & markers, close #2854 2014-11-12 12:21:39 +02:00
John Firebaugh
aa8be54513 stopPropagation of click event following drag operation (fixes #2930) 2014-11-11 17:08:27 -08:00
Vladimir Agafonkin
d9a327007b Merge pull request #3014 from Leaflet/tile-loading
More tile loading fixes
2014-11-12 00:46:14 +02:00
Vladimir Agafonkin
c6bcdb031b fix ImageOverlay anim in weird projections, close #3011 2014-11-11 16:55:12 +02:00
Vladimir Agafonkin
d0f5b51ad5 fix awesome bug regression, close #3013 2014-11-11 12:38:42 +02:00
Vladimir Agafonkin
48677f2243 fix maxNativeZoom = 0 race condition, close #3004 2014-11-10 17:53:37 +02:00
Steve Kashishian
ca2f1171b7 add interactive option on ImageOverlay 2014-11-09 13:23:19 -06:00
Steve Kashishian
4317a10fc9 allow for setStyle option regarding opacity calls on FeatureGroup to reach ImageOverlays contained inside
Brought from @opie implementation in #2246
2014-11-09 11:57:01 -06:00
David Leaver
8682511e2c Move locally declared methods out. 2014-11-09 18:08:53 +13:00
John Firebaugh
68f86d85d3 Better fix for tile pruning
Need to always prune in _addTiles, otherwise tiles can
get stranded.
2014-11-07 16:27:42 -08:00
David Leaver
2dad982a6e Remove unused e parameter 2014-11-08 09:44:43 +13:00
David Leaver
e41c131dbb Remove touch tracking from DoubleTap and improve DomEvent.Pointer e.touches emulation to provide a suitable replacement.
Refs #2820
2014-11-08 09:40:01 +13:00
John Firebaugh
bfdb7d08c7 Don't delay tile updates triggered by moveend 2014-11-07 12:11:59 -08:00
John Firebaugh
7b5168acec Ensure that added tiles are retained
Previously, quickly zooming out and then back in sometimes left
only overzoomed tiles for the lower zoom level visible. The
problem was a race condition with deferred pruning:

1. Start at z15. Zoom in. This triggers loading of z14 tiles. As each
tile loads, _pruneTiles (throttled) is called. This results in deferred
removal of z15 tiles (250ms setTimeout). The deferral is done to avoid
flicker while the z14 tiles are faded in.
2. During the 250ms, zoom in. This triggers `_addTiles`, but since the
deferred pruning of the z15 tiles hasn't happened yet, the tiles are
still present in `this._tiles`. Therefore no tiles are queued for
loading, triggering an early return in `_addTiles`, before `_pruneTiles`
is called.
3. Deferred pruning of the z15 tiles happens. Since `_pruneTiles` was
short-circuited at z15, these tiles were never retained, nor were the
z14 tiles scheduled for pruning. End result is that the z15 tiles are
removed from the DOM while the z14 tiles remain, scaled 2x.
2014-11-06 16:27:47 -08:00
John Firebaugh
78463e826b jshint 2014-11-06 16:27:47 -08:00
Vladimir Agafonkin
5f9321bac0 Merge pull request #3001 from snkashis/latlng_bounds_conversion
extract bounds conversion from Map.Geolocation.Also fix geolocation test...
2014-11-06 21:55:57 +02:00
Steve Kashishian
f3b132e414 extract bounds conversion from Map.Geolocation.Also fix geolocation test page. 2014-11-06 13:23:14 -06:00
Steve Kashishian
1eae1719bb no map._popup check needed 2014-11-06 13:02:21 -06:00
Steve Kashishian
ead96e500e closes an open popup with escape key 2014-11-06 12:48:13 -06:00
Fabian Zeindl
4f06ac30b0 Don't append/remove the SVG container
Tested this on IOS7, which has 85% adoption and I see no flicker.
Reduces layout and paint-times.
2014-11-05 18:19:35 -08:00
Jeff Smale
c6dea37d86 Preserve marker draggability on setIcon (fixes #2578) 2014-11-05 18:12:21 -08:00
John Firebaugh
e6d857eb70 jshint 2014-11-05 15:22:49 -08:00
John Firebaugh
ea2c397523 No-op bringToFront/Back when Path is not on a map (fixes #2439) 2014-11-05 15:13:28 -08:00
Vladimir Agafonkin
40376dc3be simpler retina detection fallback, close #2258 2014-11-04 13:46:53 +02:00
Vladimir Agafonkin
f10512f836 fix map.fitBounds race condition, close #2957
Fixes a situation where map.fitBounds(map.getBounds()) sometimes zoomed
out.
2014-10-31 13:57:23 +02:00
Vladimir Agafonkin
d4354bc370 fix TileLayer tms option regression 2014-10-29 18:27:55 +02:00
Vladimir Agafonkin
36b958cad0 fix WMS passing all options as WMS params, close #2972 2014-10-29 18:22:28 +02:00
Vladimir Agafonkin
f75133a482 fix blurry map after stopping inertia, close #2979 2014-10-29 17:28:50 +02:00
Vladimir Agafonkin
11b39edfa1 fix TileLayer loading event after setUrl 2014-10-29 17:19:54 +02:00
Vladimir Agafonkin
9923e4bb91 Merge pull request #2977 from yohanboniface/geojson-edge-case
Fix array of array of LatLngs toGeoJSON edge case
2014-10-27 10:40:55 +02:00
Yohan Boniface
1ddac9361a Fix array of array of LatLngs toGeoJSON edge case 2014-10-26 21:00:56 +01:00
Bernhard Eder
9707648550 fixed GridLayer not showing up after removing and adding the same instance 2014-10-26 15:45:15 +01:00
Vladimir Agafonkin
72707e3e30 fix GridLayer.redraw regression, close #2966 2014-10-23 14:27:05 +03:00
Vladimir Agafonkin
eacc499199 fix GridLayer tile loading edge case 2014-10-23 13:23:37 +03:00
Vladimir Agafonkin
2ff2c42847 move some GridLayer tests, add createTile stub 2014-10-23 12:58:29 +03:00
Alex Jeng
2f6ce64cc4 Minor change in comments for better consistency 2014-10-21 23:22:11 -07:00
Vladimir Agafonkin
d93e828935 stop panning/fly animations when necessary 2014-10-21 12:21:32 +03:00
Vladimir Agafonkin
23998c1f9c ditch transition stopping code 2014-10-21 12:21:32 +03:00
Vladimir Agafonkin
70923e6604 rename zoomPanTo to flyTo 2014-10-21 12:21:32 +03:00
Vladimir Agafonkin
7a75d07d89 update inertia settings 2014-10-21 12:21:32 +03:00
Vladimir Agafonkin
468e195ba1 rename PosAnimation.Timer to PosAnimation 2014-10-21 12:21:32 +03:00
Vladimir Agafonkin
a33eff73f0 replace CSS transitions in pan animations with frames 2014-10-21 12:21:32 +03:00
Vladimir Agafonkin
66c13bc94c fix tile loading regression after rebase 2014-10-21 12:21:32 +03:00
Vladimir Agafonkin
8b26a7399a fix build and cleanup tile pruning 2014-10-21 12:21:32 +03:00
Vladimir Agafonkin
a4e8f4e1a8 improve tile pruning 2014-10-21 12:21:31 +03:00
Vladimir Agafonkin
ad0cf365e7 fix world wrapping 2014-10-21 12:21:31 +03:00
Vladimir Agafonkin
44f16b2d9e much better tile pruning; add coords to tile events, ref #2378 2014-10-21 12:21:31 +03:00
Vladimir Agafonkin
fbe23087fa add prune lower res tiles algorithm 2014-10-21 12:21:31 +03:00
Vladimir Agafonkin
b0ce42f270 minor tile code cleanup 2014-10-21 12:21:31 +03:00
Vladimir Agafonkin
9b752757ef more flexible tile remove method 2014-10-21 12:21:31 +03:00
Vladimir Agafonkin
683cc4534c cleanup tile removal, make unloadInvisibleTiles work again 2014-10-21 12:21:31 +03:00
Vladimir Agafonkin
29a0eaef0f include zoom in tile coords, simplify parsing tile keys 2014-10-21 12:21:31 +03:00
Tom MacWright
fefe4b78eb Initialize tilesToLoad variable on GridLayer creation 2014-10-21 12:21:31 +03:00
Dave Leaver
b42500b48a Only stop the pan animation within pan animation. If there is a zoom animation going on we don't want to stop it. Otherwise big mouse wheel zooms are broken. 2014-10-21 12:21:31 +03:00
Dave Leaver
0f0d66f3df Support matrix3d as used in IE11 2014-10-21 12:21:31 +03:00
John Firebaugh
a34810cb85 Use Map#stop to stop all animations 2014-10-21 12:21:30 +03:00
Dave Leaver
a071f489a5 Removing comment out code and not needed todos 2014-10-21 12:21:30 +03:00
Dave Leaver
498aef4c31 Push getTransform up to L.DomUtil.getTransform rather than having it in ZoomAnimation and PosAnimation 2014-10-21 12:21:30 +03:00
Dave Leaver
b6c4ebdbca Move the proxy in to Map.ZoomAnimation as it is the only place that uses it. Use it to detect zoom animation finishing. 2014-10-21 12:21:30 +03:00
Dave Leaver
97598d4241 Move animated zoom stopping in to the place it belongs 2014-10-21 12:21:30 +03:00
Dave Leaver
a5552f4ed4 listen to moveend instead so we know where we are after a map drag 2014-10-21 12:21:30 +03:00
Dave Leaver
7aa9d95e9a Getting closer. project and unproject based on the current zoom seems to work in most cases. 2014-10-21 12:21:30 +03:00
Dave Leaver
c1bea627b0 stopAnimation -> stop 2014-10-21 12:21:30 +03:00
Dave Leaver
a0bc81cba8 Stop animating before starting a ZoomPan, otherwise they both run at the same time. 2014-10-21 12:21:30 +03:00
Dave Leaver
00a66b4731 Add an element for tracking zoom animations. Use it for trying to stop a map zoom. Still doesn't quite work right. Stopping a zoomPan or PanAnimation does work however. Code is all cludgy :)
refs #2560
2014-10-21 12:21:30 +03:00
Vladimir Agafonkin
acaea1c855 code cleanup; don't reload tile level that's already loaded 2014-10-21 12:21:29 +03:00
Vladimir Agafonkin
5912c365b7 zoom to the nearest round zoom with pinch or dblclick 2014-10-21 12:21:29 +03:00
Vladimir Agafonkin
fc655e45c7 manage tile pyramid levels; always animate tile fade 2014-10-21 12:21:29 +03:00
Vladimir Agafonkin
169b6a0e77 adjust zoomPan options, add a debug page 2014-10-21 12:21:29 +03:00
Vladimir Agafonkin
983a4ec261 implement pyramid animations (no tile removal yet) 2014-10-21 12:21:29 +03:00
Vladimir Agafonkin
454552e694 fix zoomPan logic, cleaner code 2014-10-21 12:21:29 +03:00
Vladimir Agafonkin
e093979297 fix GridLayer to not reset if tile zoom didn't change 2014-10-21 12:21:29 +03:00
Vladimir Agafonkin
dc04b9dbe2 add fromZoom arg to Map getZoomScale and getScaleZoom 2014-10-21 12:21:29 +03:00
Vladimir Agafonkin
1b8f68d806 simpler zoom anim calculations 2014-10-21 12:21:29 +03:00
Vladimir Agafonkin
bbb5a5a956 fix some positioning bugs 2014-10-21 12:21:28 +03:00
Vladimir Agafonkin
e26d148516 cleaner reset logic for GridLayer 2014-10-21 12:21:28 +03:00
Vladimir Agafonkin
790acad011 clean up zoomPanTo 2014-10-21 12:21:28 +03:00
Vladimir Agafonkin
4a344ae021 working zoomPanTo implementation 2014-10-21 12:21:28 +03:00
Vladimir Agafonkin
de4910f407 use offset when animating transform to avoid dividing by zero 2014-10-21 12:21:28 +03:00
Vladimir Agafonkin
c1b2c5c37c round grid layer scaling transform 2014-10-21 12:21:28 +03:00
Vladimir Agafonkin
e41d65fe66 fractional zoom code clean up an fixes 2014-10-21 12:21:28 +03:00
Vladimir Agafonkin
5d58aa4f3f initial fractional zoom implementation for grid layers 2014-10-21 12:21:28 +03:00
Vladimir Agafonkin
2be2cca49a basic linear zoomPanTo without intermediary tile loading 2014-10-21 12:21:28 +03:00
Vladimir Agafonkin
fc05abd336 Merge pull request #2834 from bullgare/path_svg_fill_rule
svg's attribute 'fill-rule' now can be set via options into either 'evenodd' or 'nonzero'
2014-10-20 13:18:30 +03:00
bullgare
809844b539 svg's attribute fill-rule supports two values: 'evenodd' and 'nonzero'. now for canvas, too. 2014-10-20 10:24:11 +04:00
nikgavalas
ce0e92cf6e Fix IE pointer events passing through to the map
Pointer events in IE would trigger on the map even when not started on the map. For example, if you had a dialog box on top of the map and dragged inside the map, the map would move. I believe this is because the handler never gets added to the obj[eventsKey] map. I noticed in the corresponding _off function below that the logic reaches there because of the multiple if/else statements. So I modified the _on even to match and it seems to fix the problem.
2014-10-17 11:35:54 -06:00
Patrick Arlt
8cc2d4b42d add newline 2014-10-14 15:15:06 -07:00
Patrick Arlt
f2490d3d4a expose a global if window is present 2014-10-13 11:18:45 -07:00
Alexander Parshin
3a5d45d62e Add optional parameter for result rounding in L.PolyUtil.clipPolygon and L.LineUtil.clipSegment 2014-09-30 09:57:53 +04:00
bullgare
b43da41575 it fixes marker's setIcon method, that flushes popup's options, which leads to breaking popup's custom offset 2014-08-26 15:35:58 +04:00
Vladimir Agafonkin
8a33e94c0e Fix scale control widths, close #2869 2014-08-25 16:38:46 +03:00
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
b_b
1bdd7cf41a Add getBounds() method to ImageOverlay
Bugfix : ImageOverlay can be added to FeatueGroup, but calling getBounds on FeatureGroup throw an error cause ImageOverlay misses this method.
2014-08-10 18:44:14 +02:00
Vladimir Agafonkin
6e4c4cef82 Merge pull request #2838 from AndreyGeonya/master
Clickable option renamed to interactive
2014-08-06 17:27:38 +03:00
AndreyGeonya
9445c2f9f2 this commit fixes #2499 2014-08-05 18:14:02 +03:00
Vladimir Agafonkin
a3066bde24 Merge pull request #2836 from AndreyGeonya/master
#2501, optional wheel debounce time
2014-08-05 17:40:10 +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
bullgare
38476615e6 svg's attribute fill-rule supports two values: 'evenodd' and 'nonzero'. now we can set it via options and it's not hardcoded. https://developer.mozilla.org/ru/docs/Web/SVG/Attribute/fill-rule 2014-08-05 17:37:20 +04:00
Vladimir Agafonkin
b80c9b3367 Merge pull request #2831 from kdeloach/topic/wms-uppercase
Add uppercase option for WMS TileLayer.
2014-08-05 10:13:28 +03:00
Kevin DeLoach
a2825920fa Add uppercase option for WMS TileLayer.
In response to issue #1751, WMS TileLayer request parameter keys were
cast to uppercase. This is a breaking change for services that are case
sensitive and expect lowercase keys.

This change adds a new option to uppercase keys, which is false by
default, to preserve backwards compatibility.
2014-08-04 17:11:57 -04: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
Vladimir Agafonkin
075d414102 Merge pull request #2745 from fab1an/perf-remove-chrome-reflow
Performance: this triggers a reflow, but newest Chrome doesn’t flicker a...
2014-07-30 14:02:09 +03:00
Vladimir Agafonkin
93cf8d7e95 Merge pull request #2605 from danzel/vmlfix
Round point so that circles work again :)
2014-07-30 13:58:39 +03:00
Vladimir Agafonkin
31047c361b Merge pull request #2764 from francis-liberty/zoom_out_max_min_error_1905
Address issue #1905, Error when zoom out of max/minZoom
2014-07-30 13:46:07 +03:00
Vladimir Agafonkin
56e245d1eb Merge pull request #2789 from danydev/fixBounceAtZoomLimits
Fixed 'bounceAtZoomLimits' when you don't start pinching from max\min level
2014-07-30 13:43:27 +03:00
jfgodoy
aeea88b9fc fix memory leak generated by setIcon
when setIcon is called this.dragging is replaced without be disabled before, so hooks remains active.
2014-07-24 00:44:42 -04:00
bennlich
412bbd7cdb always clear tile onload and onerror funs in _abortLoading() 2014-07-20 22:16:11 -07:00
bennlich
d5931ad35a added _abortLoading() to _reset() 2014-07-20 22:14:30 -07:00
bullgare
c4d99f33b2 mousemove event for marker 2014-07-18 16:21:31 +04:00
Daniele Orrù
410068c08f Fixed 'bounceAtZoomLimits' when you don't start pinching from max\min level 2014-07-13 11:41:52 +02:00
francis.chan
ac615cb89e can customize alt attribute of the image in imageOverlay. 2014-06-30 10:28:48 +08:00
francis.chan
f50806e1ca invoke _clearBgBuffer function to reset layer div container when zoom out of max or minZoom. 2014-06-29 20:22:44 +08:00
Vladimir Agafonkin
c1a4ba9517 Merge pull request #2746 from fab1an/perf-remove-unnecessary-array
removed 1 unnecessary array-creation
2014-06-17 18:30:55 +03:00
Fabian Zeindl
0416bd473f Performance: this triggers a reflow, but newest Chrome doesn’t flicker anymore. 2014-06-17 15:40:31 +02:00
Fabian Zeindl
132e5b6f7c Performance: don’t set width/height on SVG if unchanged. Saves a costly layout/repaint in some situations. 2014-06-17 15:39:58 +02:00
Fabian Zeindl
b08e2f7a3d removed 1 unnecessary array-creation 2014-06-17 14:34:16 +02:00
Malte Legenhausen
5c7bf0268a Bugfix for #2704 2014-06-04 09:24:50 +02:00
Vladimir Agafonkin
760c730f92 fix LatLng.distanceTo race condition, close #2705 2014-05-28 17:26:41 +03:00
Tom MacWright
cea1eff732 Set detectRetina's expected type as Boolean at code level to match documentation and usage 2014-05-27 15:30:47 -04:00
Vladimir Agafonkin
0aeca1a4e7 remove element argument in requestAnimFrame 2014-05-26 23:21:33 +03:00
Vladimir Agafonkin
b16daa39b9 fix rare error when dragging vectors, close #2706 2014-05-26 18:52:24 +03:00
Vladimir Agafonkin
1d0dc6dcad add and use L.DomUtil.empty, close #2600 2014-05-26 18:47:11 +03:00
Vladimir Agafonkin
53048500b1 fix vector rendering regression 2014-05-26 17:10:09 +03:00
cebence
9f48f357ae Fixing URL template issue #2695 2014-05-21 13:43:29 +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
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
Anton Borodatov
760ee99bdd Opera does not support translate3d property
Restore Opera supporting with setting 'translate' property instead of 'translate3d' in nonWebkits browsers. Code was copy-pasted from previous version.
2014-03-24 16:59:25 +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
Vladimir Agafonkin
264eca8ee6 don't clamp mercator after 85, simplify projection code 2014-01-03 15:26:40 +02:00
Vladimir Agafonkin
06fb3ce6e4 much better circle approximation near poles 2014-01-03 03:50:22 +02:00
Vladimir Agafonkin
7ff0fa9c72 approximate Circle with ellipse 2014-01-03 00:37:34 +02:00
Vladimir Agafonkin
c4a9418d3b add low level ellipse rendering support 2014-01-02 20:36:47 +02:00
Vladimir Agafonkin
9ce2cc5cbd use simpler distance formula (precision is good enough) 2014-01-02 16:32:57 +02:00
Vladimir Agafonkin
3d34f27df8 normalize latlng argument in Map wrapLatLng 2014-01-02 16:15:00 +02:00
Vladimir Agafonkin
ea1402ec4f simplify calculations in scale control 2014-01-02 16:13:08 +02:00
Vladimir Agafonkin
5923a64ec4 add Map distance method, close #1442 2014-01-02 16:13:03 +02:00
Vladimir Agafonkin
2ee5c90f02 add CRS.Earth, move Harvesine distance there 2014-01-02 15:42:14 +02:00
Vladimir Agafonkin
6940b5bac9 use projected coordinates in Circle, close #1465 2014-01-02 15:23:28 +02:00
Vladimir Agafonkin
b2965351e0 ignore openPopup if map not initialized, close #2343 2013-12-31 02:43:56 +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
6cea376807 add missing Canvas events, fix mouseover spam 2013-12-30 13:22:14 +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
8bf7f963e2 fix marker drag regression 2013-12-27 19:27:11 +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
9ae1623910 include version info in top comment, close #2276 2013-12-26 18:46:00 +02:00
Vladimir Agafonkin
abdf0c2afa better compression for Leaflet.js 2013-12-26 18:45:29 +02:00
Vladimir Agafonkin
2b96ea5aba make Leaflet.js requirable for version, remove noConflict test
Currently tests don’t account for wrapper function around Leaflet
source, so the noConflict one failed — removing for now.
2013-12-26 18:29:46 +02:00
Vladimir Agafonkin
9a6288ef37 make Android double-click issue threshold smaller, close #2303 2013-12-25 20:37:25 +02:00
Vladimir Agafonkin
8764063c46 simpler and faster mouse pos; remove DomUtil.documentIsLtr 2013-12-24 18:46:05 +02:00
Vladimir Agafonkin
9eaaf096c1 use getTileSize when determining tile bounds 2013-12-24 00:47:11 +02:00
Vladimir Agafonkin
3ae769a4e7 pass options in canvas/svg factories 2013-12-23 22:39:42 +02:00
Vladimir Agafonkin
bc405b5911 make propagation work correctly for vector layers 2013-12-23 21:33:25 +02:00
Vladimir Agafonkin
6edc39e19a revert ce29ac59 2013-12-23 17:21:12 +02:00
Vladimir Agafonkin
5d9cc6bf47 optimize canvas implementation further 2013-12-23 16:55:12 +02:00
Vladimir Agafonkin
6b43bc6566 fix Popup remove/add sequence 2013-12-23 12:47:02 +02:00
Vladimir Agafonkin
37485fd334 fix layers control not firing overlayadd, close #2330 2013-12-23 12:41:50 +02:00
Vladimir Agafonkin
dd72a6545a simplify bringToFront/Back, add DomUtil toFront/Back 2013-12-23 12:31:51 +02:00
Vladimir Agafonkin
a97c599201 Layer popup methods and cleanup, fix #2279, fix #2292 2013-12-21 12:46:38 +01:00
Vladimir Agafonkin
9e6a747f6f minor events-related cleanup 2013-12-21 09:53:26 +01:00
Vladimir Agafonkin
deec9d54be don't bind on each move in IE7-8 2013-12-21 09:36:53 +01:00
Vladimir Agafonkin
47783821f7 rename limitExecByInterval to throttle, better implementation 2013-12-21 01:49:25 -05:00
Vladimir Agafonkin
b7c03c8a99 add more comments to Util, clean up 2013-12-20 22:47:09 -05:00
Vladimir Agafonkin
d0051500c3 comment the Events code better 2013-12-20 17:26:27 -05:00
Vladimir Agafonkin
dcb6f74ef5 ensure execution order in events, slightly bulkier structure 2013-12-19 18:35:05 -05:00
Vladimir Agafonkin
ce29ac59a9 fire load after viewreset/moveend to fix Canvas rendering 2013-12-19 18:04:55 -05:00
Vladimir Agafonkin
70e3500716 rename _leaflet_events to _events 2013-12-19 17:20:04 -05:00
Vladimir Agafonkin
88b27fe832 clean up events code a bit 2013-12-19 17:14:53 -05:00
Vladimir Agafonkin
1dfec0a021 shortcut hasEventListeners as listens 2013-12-19 17:09:32 -05:00
Vladimir Agafonkin
d4fe4cb804 simplify events code, better footprint, speedup removal 2x 2013-12-19 17:05:36 -05:00
Vladimir Agafonkin
6d81f5e51c fix edge case with SVG event delegation 2013-12-19 16:13:34 -05:00
Vladimir Agafonkin
247c13fbdd optimize perf-sensitive LayerGroup methods 2013-12-19 02:23:17 -05:00
Vladimir Agafonkin
df4570a9f0 delegate SVG event handling to root, close #2315 2013-12-19 00:58:13 -05:00
Vladimir Agafonkin
be67170869 simpler stamp without closure 2013-12-19 00:20:43 -05:00
Vladimir Agafonkin
824d168375 optimize DomEvent addListener 2013-12-19 00:20:23 -05:00
Vladimir Agafonkin
6d1142a978 only propagate events if given true to fire, #2311 2013-12-18 23:23:22 -05:00
Vladimir Agafonkin
ce4a031d40 faster on/off, add private non-sugary versions 2013-12-18 23:07:39 -05:00
Vladimir Agafonkin
6b132009af handle attrib in Layer, don't use map layeradd/remove (perf)
otherwise thousands of markers/vectors will trigger layeradd and check
for attributions, this is waste of resources
2013-12-18 23:04:08 -05:00
Vladimir Agafonkin
f7198e71dc fix build 2013-12-18 22:22:40 -05:00
Vladimir Agafonkin
1c925fa698 don't copy over layer options on GeoJSON setStyle (perf) 2013-12-18 22:21:17 -05:00
Vladimir Agafonkin
9f09f50812 remove Util invokeEach since on/off are hot functions 2013-12-18 22:05:47 -05:00
Vladimir Agafonkin
a628e724a1 minor poly performance tweaks 2013-12-18 21:55:04 -05:00
Vladimir Agafonkin
9cc1b3608d more comments in new vector code 2013-12-18 15:19:53 -05:00
Vladimir Agafonkin
511cbd5465 add more comments to Canvas, fix dragging cursors 2013-12-18 14:57:06 -05:00
Vladimir Agafonkin
cf55d0edb9 clean up Renderer/SVG code and add comments 2013-12-18 14:36:58 -05:00
Vladimir Agafonkin
b329c4a9fd only round clip edges, other path points already rounded 2013-12-18 14:35:51 -05:00
Vladimir Agafonkin
4d8990f7a8 dry up the renderer code a bit 2013-12-18 13:45:05 -05:00
Vladimir Agafonkin
95e394f0d8 fix mouse handling regression in Path 2013-12-18 13:20:01 -05:00
Vladimir Agafonkin
f2af995a10 tweak default vectors color 2013-12-18 12:03:24 -05:00
Vladimir Agafonkin
988dc3a27a redraw partially when updating canvas layers (massive speedup) 2013-12-18 12:03:24 -05:00
Vladimir Agafonkin
e5d1ff6db2 fix dragging on canvas layer 2013-12-18 12:03:24 -05:00
Vladimir Agafonkin
811006adc5 cache circle bounds 2013-12-18 12:03:24 -05:00
Vladimir Agafonkin
eca9fe966e fix retina canvas redraw bug 2013-12-18 12:03:23 -05:00
Vladimir Agafonkin
7bffd4924b do stroke hit detection after polygon 2013-12-18 12:03:23 -05:00
Vladimir Agafonkin
f930588bca simpler Circle._containsPoint, remove accidental debug 2013-12-18 12:03:23 -05:00
Vladimir Agafonkin
f4f8c06c75 fix adding/removal of vectors and renderers 2013-12-18 12:03:23 -05:00
Vladimir Agafonkin
f750b76e04 fix addLatLng not affecting bounds 2013-12-18 12:03:23 -05:00
Vladimir Agafonkin
2e9141fa98 better style defaults for vector features 2013-12-18 12:03:23 -05:00
Vladimir Agafonkin
518b82b755 fix GeoJSON resetStyle in case no style was specified 2013-12-18 12:03:23 -05:00
Vladimir Agafonkin
508a75f7a8 make Circle inherit from CircleMarker and not the other way 2013-12-18 12:03:23 -05:00
Vladimir Agafonkin
fe5cd4b127 tweaks to renderer instancing 2013-12-18 12:03:23 -05:00
Vladimir Agafonkin
fdae94ce34 fix test with empty polyline 2013-12-18 12:03:23 -05:00
Vladimir Agafonkin
46c279c88f various IE vectors fixes 2013-12-18 12:03:22 -05:00
Vladimir Agafonkin
4e33ce3e0a cache getBounds and optimize Canvas events 2013-12-18 12:03:22 -05:00
Vladimir Agafonkin
f045742a28 add Polyline and Polygon getCenter, openPopup in centroid 2013-12-18 12:03:22 -05:00
Vladimir Agafonkin
674d9ae4d3 Retina support and better default renderer handling 2013-12-18 12:03:22 -05:00
Vladimir Agafonkin
e35095fcf9 fix CircleMarker setStyle 2013-12-18 12:03:22 -05:00
Vladimir Agafonkin
05054a1088 fix Popup regression 2013-12-18 12:03:22 -05:00
Vladimir Agafonkin
dc5151b81a fix GeoJSON roundtripping 2013-12-18 12:03:22 -05:00
Vladimir Agafonkin
04addb791e fix choosing default renderer 2013-12-18 12:03:22 -05:00
Vladimir Agafonkin
d0eedd3f52 rename vectors2 folder into vectors, update deps 2013-12-18 12:03:22 -05:00
Vladimir Agafonkin
2ac898654a minor clean up 2013-12-18 12:03:21 -05:00
Vladimir Agafonkin
21510e6100 add CircleMarker 2013-12-18 12:03:21 -05:00
Vladimir Agafonkin
1e04f5feba add Circle implementation 2013-12-18 12:03:21 -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
6f9d05fc40 implement Canvas events and SVG click-through 2013-12-18 12:03:21 -05:00
Vladimir Agafonkin
41a576b930 minor clean up 2013-12-18 12:03:21 -05:00
Vladimir Agafonkin
ddb9a376be flatten poly latlngs into rings, proper clipping 2013-12-18 12:03:21 -05:00
Vladimir Agafonkin
6543fe50bc fix jshint errors 2013-12-18 12:03:21 -05:00
Vladimir Agafonkin
6aa605f606 clean up lineJoin/lineCap 2013-12-18 12:03:21 -05:00
Vladimir Agafonkin
08028b7a7a add VML implementation (not tested yet) 2013-12-18 12:03:21 -05:00
Vladimir Agafonkin
5d8e7279b2 remove vector stuff that's already ported 2013-12-18 12:03:21 -05:00
Vladimir Agafonkin
b2eee96d5c remove MultiPoly classes (unnecessary) 2013-12-18 12:03:20 -05:00
Vladimir Agafonkin
48a3c34702 add Path Popup implementation 2013-12-18 12:03:20 -05:00
Vladimir Agafonkin
919b862c15 add MultiPolyline and MultiPolygon implementations 2013-12-18 12:03:20 -05:00
Vladimir Agafonkin
b19fd8d1cd proper Canvas redraw & setStyle 2013-12-18 12:03:20 -05:00
Vladimir Agafonkin
7976b1f284 add basic Canvas implementation 2013-12-18 12:03:20 -05:00
Vladimir Agafonkin
3c5cf0fd2b fix stroke appearing on polygon clip edges 2013-12-18 12:03:20 -05:00
Vladimir Agafonkin
1bd0ee2dd5 SVG.js minor cleanup 2013-12-18 12:03:20 -05:00
Vladimir Agafonkin
274e1559b7 fix "error parsing z" error in SVG 2013-12-18 12:03:20 -05:00
Vladimir Agafonkin
cea35a35e5 add SVG mouse events support 2013-12-18 12:03:20 -05:00
Vladimir Agafonkin
f3b376f599 add Path setStyle 2013-12-18 12:03:20 -05:00
Vladimir Agafonkin
d3426d557b fix Polygon getBounds and factory 2013-12-18 12:03:20 -05:00
Vladimir Agafonkin
d983464ab5 SVG bringToFront and bringToBack 2013-12-18 12:03:19 -05:00
Vladimir Agafonkin
7cd67edf71 copy Rectangle implementation 2013-12-18 12:03:19 -05:00
Vladimir Agafonkin
33f4e72cc4 add working Polygon implementation 2013-12-18 12:03:19 -05:00
Vladimir Agafonkin
eade171b7e fix renderers not updating bounds before path updates 2013-12-18 12:03:19 -05:00
Vladimir Agafonkin
3c8dd353a8 manage renderer automatically 2013-12-18 12:03:19 -05:00
Vladimir Agafonkin
076255f33f initial working Path/Polyline implementation 2013-12-18 12:03:19 -05:00
Vladimir Agafonkin
568fd154e2 initial Renderer/SVG implementations 2013-12-18 12:03:19 -05:00
Vladimir Agafonkin
7b9bedb497 Merge pull request #2311 from Leaflet/propagate
Fast universal event propagation
2013-12-18 08:30:45 -08:00
Vladimir Agafonkin
0876b51bc9 remove DomUtil.getViewportOffset as unnecessary 2013-12-18 00:51:01 -05:00
Vladimir Agafonkin
f631513acc fast event propagation (10x FeatureGroup layer add speedup) 2013-12-17 17:08:21 -05:00
Vladimir Agafonkin
1cc9ecdded clean up Class.js 2013-12-17 15:53:52 -05:00
Vladimir Agafonkin
4e2c097c5f Merge pull request #2310 from Leaflet/evented
Evented base class to use in favor of mixing in event methods
2013-12-17 12:52:50 -08:00
Vladimir Agafonkin
d662e005bb no parseFloat in LatLng, faster factory (massive speedup)
see http://jsperf.com/leaflet-parsefloat-in-latlng
2013-12-17 15:38:49 -05:00
Vladimir Agafonkin
3469eb933d Merge pull request #2296 from urbaniak/retina-tile-url
add {r} format to url, which returns @2x when retina detected and enabled
2013-12-17 11:41:33 -08:00
Vladimir Agafonkin
21cfd7f3d9 replace Events mixin with Evented inheritance 2013-12-17 14:07:21 -05:00
Vladimir Agafonkin
4a142af76d make Evented longer names aliases instead of on/off 2013-12-17 14:06:54 -05:00
Vladimir Agafonkin
b22715a9e5 replace L.Mixin.Events with L.Evented class (bw-compat) 2013-12-17 13:55:39 -05:00
Vladimir Agafonkin
d0e72934d7 make instantiation faster by avoiding callInitHooks where not needed 2013-12-17 13:27:10 -05:00
Vladimir Agafonkin
18d0cf4dc1 made the logo pretty-printed for consistency 2013-12-16 19:09:22 -05:00
Vladimir Agafonkin
447b0aa35c Merge pull request #2304 from jacobtoye/master
Adding Leaflet logo in svg format
2013-12-16 16:08:31 -08:00
jacobtoye
f0be7dcf0f Run logo svg through svgo 2013-12-17 13:04:01 +13:00
Vladimir Agafonkin
e44b8d944e use lighter extend in setOptions, simplify extend 2013-12-16 18:37:06 -05:00
jacobtoye
b675bbeecf Adding Leaflet logo in svg format 2013-12-17 12:04:53 +13:00
John Firebaugh
f2b34cd012 Use L.Util.create for class extension 2013-12-15 14:35:02 -08:00
John Firebaugh
ad9d0f8c7f Make options object prototype-inherited
Fixes #2294
2013-12-15 13:30:30 -08:00
Krzysztof Urbaniak
caa9d8622b fix retina condition 2013-12-14 16:54:29 +01:00
Krzysztof Urbaniak
de1a62fa52 add {r} format to url, which returns @2x when retina detected and enabled 2013-12-14 16:40:19 +01:00
Vladimir Agafonkin
f619e3b242 bring this._map check back 2013-12-13 18:35:51 -05:00
John Firebaugh
af9302ce19 Make GridLayer methods safe to call pre-setView 2013-12-13 18:01:06 -05:00
John Firebaugh
5e0d343501 Fix build 2013-12-13 17:50:32 -05:00
Vladimir Agafonkin
773fa91d1e fix old IE and stricter jshinting 2013-12-13 17:24:43 -05:00
Vladimir Agafonkin
69890a29cf fix build 2013-12-13 17:21:39 -05:00
Vladimir Agafonkin
40a67a2113 fix LayerGroup hasLayer 2013-12-13 17:00:52 -05:00
Vladimir Agafonkin
de4f0353e1 fix Map hasLayer 2013-12-13 16:47:58 -05:00
Vladimir Agafonkin
8c3010ca88 fix FeatureGroup getBounds 2013-12-13 16:38:24 -05:00
Vladimir Agafonkin
4e9b8a42e9 call addLayers after initHooks where anim is detected, fixes #2281 2013-12-11 18:13:00 -05:00
danzel
27cd306e6b Change touch detection check for ontouchstart in window like modernizr does. Fixes chrome touch emulation. Fixes #2277 2013-12-12 09:30:11 +13:00
Vladimir Agafonkin
f1d2b0d5df revert commenting out watch for terser code #2274 2013-12-10 11:17:40 +01:00
Vladimir Agafonkin
4a42dc07d7 minor code readability fix 2013-12-10 01:53:22 +01:00
Yohan Boniface
369290d90d Firefox has a Object.prototype.watch method 2013-12-09 15:59:20 +01:00
Vladimir Agafonkin
eec19a441b add Control & Layer remove method 2013-12-06 16:49:50 +02:00