Commit Graph

724 Commits

Author SHA1 Message Date
emartinez
cfbf31721b Patch so setPosition works properly on Control. 2012-05-01 18:04:27 -06:00
Aaron King
69aa3500ff Add getLatLng() and getRadius() methods to L.Circle. 2012-04-30 15:52:23 -07:00
Aaron King
1ffedae5ab Add getContainer() method to L.Map as per the documentation. 2012-04-27 12:49:57 -07:00
Dino Ravnić
1195ac3eea code reformating to make it compliant with jake 2012-04-27 15:00:36 +02:00
Vladimir Agafonkin
0d5e4ccf54 Merge pull request #602 from chx007/patch-1
getViewportOffset -> position:fiexd
2012-04-25 13:59:56 -07:00
jacobtoye
4e2fe35554 Prevent the default action and stop propagation when the layers control is expanded. 2012-04-17 13:11:41 +12:00
Mithgol the Webmaster
a8fa869a41 includes fixes provided by Max Ogden 2012-04-08 05:10:32 +04:00
djomp
ecec332504 Fix for passing jake jshint 2012-04-03 10:42:29 +02:00
Reed
a73b812fe1 fixed _checkIfEmpty in Circle.js with check for _map property 2012-04-01 15:39:00 -04:00
Mithgol the Webmaster
cc0fc0e5b7 adjust zoom levels as well (otherwise markers seem mispositioned) 2012-03-30 09:46:31 +04:00
Mithgol the Webmaster
443181af07 detectRetina is optional (false by default) to prevent map features (like city titles) from being too small to read on retinal tiles 2012-03-26 19:57:12 +04:00
chx007
280649bf42 getViewportOffset -> position:fiexd 2012-03-26 22:04:57 +08:00
Damon Oehlman
ab936cbafb Tweaked DOM util opacity to only apply in IE when opacity !== 1 2012-03-26 14:53:05 +10:00
Johannes
7a9b504e75 Fix bug in bind causing loss of arguments
Empty Arrays are truthy

Fixes issue #574
2012-03-17 16:57:47 +00:00
Mithgol the Webmaster
97cd41e9f5 correction: window.devicePixelRatio > 1 becomes false even if devicePixelRatio is undefined 2012-03-16 10:53:54 +04:00
Mithgol the Webmaster
c7e29b5a87 detecting retina displays, adjusting tileSize 2012-03-16 09:44:07 +04:00
mourner
b333f86e1d fix superclass regression 2012-03-09 11:28:14 +02:00
mourner
9081e9a00c Merge branch 'master' of github.com:CloudMade/Leaflet 2012-03-07 00:08:17 +02:00
Vladimir Agafonkin
14f1a6a947 Merge pull request #557 from JasonSanford/feature-group-bounds
Adding getBounds method to FeatureGroup.
2012-03-06 07:13:07 -08:00
Mattias Bengtsson
e27f4cbcbd Make Leaflet build again. 2012-03-06 15:18:53 +01:00
Jason Sanford
713a3a702f Adding getBounds method to FeatureGroup. 2012-03-03 22:54:50 -07:00
mourner
e5f934e97f more global refactoring 2012-03-04 00:42:50 +02:00
Vladimir Agafonkin
d7998fa7cb Merge pull request #553 from JasonSanford/bounds-extend
LatLngBounds.extend(otherLatLngBounds)
2012-03-03 13:37:50 -08:00
CKeen
a4197a825e add start & end events for Map.BoxZoom 2012-03-03 11:39:14 -05:00
Jason Sanford
d86278571d LatLngBounds.extend(otherLatLngBounds) seems to be working. Addresses #517. 2012-03-03 08:39:18 -07:00
mourner
0474023675 initial global refactoring 2012-03-03 17:02:20 +02:00
Vladimir Agafonkin
20c0bad37e Merge pull request #548 from mehmeta/contentupdated
Added contentupdated event to popup
2012-03-03 05:51:33 -08:00
Vladimir Agafonkin
e9d9a021d3 Merge pull request #552 from mehmeta/polyedit
Bugfix: Proper cleanup of marker editing handler when it is disabled.
2012-03-03 05:50:48 -08:00
Mehmet Alkanlar
cf52a5168b Moving it inside the if clause makes more sense. 2012-03-02 15:52:53 -07:00
Mehmet Alkanlar
5437de4116 Bugfix: Proper cleanup of marker editing handler when it is disabled.
This fixes a critical bug which occurs if editing is enabled, disabled
and enabled again. Since line 16 checks for existence of marker group
reference, markers never get reinitiated, causing the handler to use
the old ones, which may have been changed in the last editing session.
2012-03-02 15:43:35 -07:00
mourner
59f6672e64 whitespace fix 2012-03-01 14:10:27 +02:00
Mehmet Alkanlar
85ae6d9192 Renamed the event according to conventiions 2012-02-29 17:11:24 -07:00
Mehmet Alkanlar
925ffd6538 Fixed bugs on polyline editing regarding edge cases
This commit fixes couple bugs. One of them is polylines (or polygons)
can be  reduced to a single point by clicking on markers to remove
them. Second, if an edge point is clicked for a polyline (not
applicable to polygons since they are a circular linked list) code
produces a js error since previous or next might not be present.
2012-02-29 15:35:35 -07:00
Mehmet Alkanlar
cbe7e9795f Added contentupdated event to popup 2012-02-29 15:24:21 -07:00
mourner
401a6e2224 Added originalEvent to Marker mouse events, closed #408 2012-02-26 01:14:42 +02:00
mourner
14e3eff44b Fixed IE regression, closed #539 2012-02-26 01:11:43 +02:00
mourner
fc0b477622 minor cleanup 2012-02-25 17:13:30 +02:00
mourner
90198ec519 added scale control 2012-02-25 17:04:27 +02:00
mourner
79eb5bcb32 fire move during pan animation 2012-02-25 16:59:08 +02:00
mourner
5d263e9637 more inertia fixes 2012-02-25 11:40:39 +02:00
Dino Ravnić
dd5e4744e2 forgot a semicolon 2012-02-25 01:44:31 +01:00
Dino Ravnić
5d1b56c9e7 "instanceof window.Event" didn't worked on Chrome, so replaced it with a more general variant 2012-02-25 01:31:37 +01:00
Dino Ravnić
c2b0037f34 - dragend should fire in _onDragEnd no matter if inertia is on or off
- fixed an inertia edge case when _onDragEnd was called and _positions array was empty
2012-02-25 01:27:54 +01:00
mourner
e5d315a6aa fix deceleration spelling 2012-02-25 00:07:28 +02:00
mourner
291f3515bf fix touch zoom regression 2012-02-25 00:05:06 +02:00
mourner
4583eb13e0 fix typo 2012-02-24 23:20:50 +02:00
mourner
0f914b6409 fix regression with tile loading 2012-02-24 22:48:22 +02:00
mourner
bca3c8eb67 fix typo (treshold -> threshold) 2012-02-24 18:18:50 +02:00
mourner
2e9551dbe9 Merge branch 'inertia' 2012-02-24 17:20:44 +02:00
mourner
57aee3c5ed Finally implemented panning inertia, closed #17 2012-02-24 17:19:53 +02:00
mourner
0299c02d27 Fixed world wrapping regression, closed #526 2012-02-24 17:17:00 +02:00
mourner
194425d24b Fix stuttering of pan animation in some cases 2012-02-24 16:53:22 +02:00
mourner
8ad4f12cb9 Minor zoom animation cleanup 2012-02-24 16:52:30 +02:00
mourner
8ba23eb393 Don't do tile update when animation is in progress 2012-02-24 16:51:10 +02:00
Jason Sanford
a7081e6927 Fixing typo in Rectanlge.js description. Adding Rectangle.js to dependencies. 2012-02-23 14:02:10 -07:00
mourner
cc058fcd83 more inertia experiments 2012-02-23 17:24:32 +02:00
mourner
de8274831b Merge branch 'master' into inertia 2012-02-23 16:37:57 +02:00
mourner
477c1109eb clean up, move attribution prefix arg to options 2012-02-23 11:01:03 +02:00
mourner
08dccbc71c fix some more whitespace 2012-02-23 10:52:49 +02:00
mourner
d728779bc6 fix controls regression 2012-02-23 10:47:19 +02:00
Vladimir Agafonkin
d6d35c0f19 Merge pull request #523 from thatjpk/fire_edit_on_drag_vertex
Fire 'edit' event while dragging editable polygon/line marker.
2012-02-23 00:36:48 -08:00
mourner
2c54d55189 fix missing semicolon 2012-02-23 10:33:49 +02:00
Vladimir Agafonkin
849a3b6e1b Merge pull request #524 from giscloud/return.this.fix
all paths need to return "this"
2012-02-22 23:23:58 -08:00
jpk
5f9bd71f61 Fixes click (without drag) on middle marker to fire 'edit'. 2012-02-22 20:24:05 -05:00
jpk
fb255798dd Makes polygon/line edits fire('edit') only on dragend. 2012-02-22 20:10:07 -05:00
jpk
62f3b6faeb Merge remote-tracking branch 'upstream/master' into fire_edit_on_drag_vertex 2012-02-22 20:09:46 -05:00
mourner
0a7bafd14f initial inertia work (experimental) 2012-02-23 01:10:28 +02:00
Dino Ravnić
e690cceda3 all paths need to return "this" 2012-02-23 00:09:30 +01:00
mourner
9bf845851d Merge branch 'master' of github.com:CloudMade/Leaflet 2012-02-22 23:39:21 +02:00
Vladimir Agafonkin
128dd319e6 Merge pull request #521 from k4/master
ctrl-click event
2012-02-22 13:12:50 -08:00
k4
d26a35aa14 save original event in MouseEvent. 2012-02-22 21:25:19 +03:00
k4
92437ae100 save original event in MouseEvent. 2012-02-22 21:23:12 +03:00
k4
9da8dcf803 save original event in MouseEvent. 2012-02-22 21:20:03 +03:00
jpk
5539886132 Fire 'edit' event while dragging editable polygon/line marker. 2012-02-22 12:40:10 -05:00
Vladimir Agafonkin
1abcc66f19 more zoom control cleanup 2012-02-22 15:28:38 +02:00
k4
4be061a5cc add ctrlKey to mouse event 2012-02-22 17:27:20 +04:00
Vladimir Agafonkin
764205765a clean up zoom control code 2012-02-22 15:26:30 +02:00
k4
0336d1c8c8 add ctrlKey to mouse event 2012-02-22 17:25:51 +04:00
mourner
2f0fbc3ca3 make panning even more smooth 2012-02-22 09:00:54 +02:00
mourner
dfdd363d2e cancelAnimFrame function 2012-02-22 08:59:17 +02:00
Jason Sanford
a9c1629875 DRYing things up a bit with Rectangle.js 2012-02-21 07:47:34 -07:00
Jason Sanford
53627cab80 Merge branch 'master' of git://github.com/CloudMade/Leaflet 2012-02-21 07:39:54 -07:00
mourner
e6af79d005 Fixed poly editing with layer add/remove bugs, closed #508 2012-02-21 15:28:11 +02:00
mourner
7889b692b0 Made Marker openPopup fail silently, closed #507 2012-02-21 15:07:54 +02:00
mourner
60f96281e7 Fixed false clicks on touch devices bugs, closed #485 2012-02-21 14:58:01 +02:00
mourner
96e29ee3e9 Fixed manual popup closing bug, closed #423 2012-02-21 14:53:59 +02:00
mourner
10bb71fb2a Improved panning usability on marker-crowded maps, closed #506 2012-02-21 12:32:11 +02:00
mourner
495f4d3632 More Icon-related improvements 2012-02-21 12:02:54 +02:00
mourner
e64743f741 Bringed back the mouseEventToLatLng method, closed #515 2012-02-21 10:46:04 +02:00
Jason Sanford
6778c4c26b Adding setBounds method to Rectangle layer. 2012-02-20 22:08:28 -07:00
Jason Sanford
e90230272d Merge branch 'master' of git://github.com/CloudMade/Leaflet 2012-02-20 21:54:23 -07:00
mourner
1e72e40c89 Added Popup maxHeight option, updated default popup styles 2012-02-17 15:32:40 +02:00
mourner
c6ec68615f Added Map addHandler method 2012-02-17 15:30:25 +02:00
mourner
1063ad884e made panning animation slightly faster 2012-02-17 11:53:31 +02:00
mourner
fe77297cf5 made zoom animation slightly faster 2012-02-17 11:53:11 +02:00
Jason Sanford
b18491c25d Adding L.Rectangle. Just ready to test in debug, still needs added to build scripts, documentation to be comlete. Addresses #494. 2012-02-16 23:36:46 -07:00
mourner
d907c6df63 Fixed setStyle stroke/fill update bug, closed #441 2012-02-16 18:56:39 +02:00
mourner
c3b33d8ca3 Polyline editing fixes, better debug page 2012-02-16 18:11:17 +02:00
Vladimir Agafonkin
b76cba10e2 Merge pull request #501 from ErrorProne/master
Forgot to prevent the default action on Path-right click
2012-02-16 07:56:18 -08:00
mourner
9ae2926327 Add Polyline edit event 2012-02-16 17:46:24 +02:00