Commit Graph

2336 Commits

Author SHA1 Message Date
Vladimir Agafonkin
e6b8466429 update changelog 2013-05-08 12:57:35 +03:00
Vladimir Agafonkin
d58a237668 Merge pull request #1661 from spamdaemon/FIX_1654
Make sure events don't fire after listener is removed.
2013-05-08 02:54:38 -07:00
Vladimir Agafonkin
a7bc9e41c6 fix typo 2013-05-08 12:53:03 +03:00
Vladimir Agafonkin
f13e99e362 major changelog update 2013-05-08 12:51:15 +03:00
R. Merkert
bbb7acb3f4 Make sure events don't fire after listener is removed.
This patch fixes a problem with a dangling  event listener, which is
called even after it has been removed. This situation can occur when a
listener is removed during an even dispatch.

To fix this problem, the old action is replaced with a NOOP, so that
when the listener is being fired, it is not the old listener but the
NOOP.
2013-05-07 20:16:25 -04:00
Vladimir Agafonkin
68c45bc9fe Merge pull request #1659 from karlnack/fix-ff-maxbounds
Update L.PosAnimation._transformRe to account for units (fixes #1658)
2013-05-07 11:14:31 -07:00
Karl Nack
06842ef659 Fix transformRe (fixes #1658)
Allow optional units in the transformation matrix, the presence of which
causes maxBounds settings not to work in (at least) older versions of Firefox.

Also update the regex to match on numbers per W3 spec: "A number is either an
<integer> or zero or more decimal digits followed by a dot (.) followed by one
or more decimal digits." (from CSS Values and Units Module Level 3)
2013-05-07 11:57:38 -05:00
Vladimir Agafonkin
38c1164152 fix pan animation regression, close #1629 2013-05-07 11:44:28 +03:00
Vladimir Agafonkin
f9cd3b532d Merge pull request #1650 from gumballhead/layers-by-id
Extend #1642 to include FeatureGroups and lookup by id.
2013-05-04 14:40:43 -07:00
Andrew Kirkegaard
44c1a594e1 removeLayer by id for FeatureGroups. 2013-05-04 16:24:02 -05:00
Andrew Kirkegaard
df2ef42fe4 getLayer by id. 2013-05-04 16:16:36 -05:00
Vladimir Agafonkin
f3584ff527 add optional popup argument to Map closePopup 2013-05-03 16:16:25 +03:00
Vladimir Agafonkin
f2d237b01c Merge pull request #1617 from Leaflet/setview-anim
Control animation in setView/panTo/setZoom/fitBounds/etc.
2013-05-03 02:12:21 -07:00
Vladimir Agafonkin
c376354fc8 Merge pull request #1642 from gumballhead/master
hasLayer and removeLayer by id.
2013-05-03 02:06:52 -07:00
Andrew Kirkegaard
6ea5984dc6 hasLayer and removeLayer by id. 2013-05-02 22:26:54 -05:00
John Firebaugh
c9e2453eed Bounds-check array access in Polygon#initialize 2013-05-02 16:17:04 -07:00
Dave Leaver
e032046119 Mention why aria-haspopup is required in the layers control 2013-05-01 08:24:19 +12:00
Vladimir Agafonkin
df72027401 accept true as a third setView argument for compatibility 2013-04-30 17:09:55 +03:00
Vladimir Agafonkin
5ab4d4a4be minor cleanup 2013-04-30 17:08:10 +03:00
Vladimir Agafonkin
260a869da6 accept global animate option in setView 2013-04-30 17:06:16 +03:00
Vladimir Agafonkin
8d759e6c5e clean up handlers and panes on map remove, close #1621 2013-04-30 16:51:51 +03:00
Vladimir Agafonkin
47dd2d9371 Merge pull request #1635 from danzel/master
Fix layers control on WinPhone8/IE10 Touch
2013-04-30 02:39:34 -07:00
danzel
87db54b65c Make jshint happy 2013-04-30 15:32:36 +12:00
danzel
d18f6249b2 Add aria-haspopup to layers dialog, fixes it not working on WinPhone8/IE10 Touch devices. Fixes #1539 2013-04-30 15:31:08 +12:00
Vladimir Agafonkin
4224b9a5ce Merge pull request #1633 from stuporglue/divicon_0
Allow value of 0 in L.DivIcon's html parameter
2013-04-29 05:25:33 -07:00
Michael Moore
c1919087fa Allow value of 0 in L.DivIcon's html parameter 2013-04-29 07:19:10 -05:00
Vladimir Agafonkin
8c7126af26 Merge pull request #1632 from tjoekbezoer/master
Issue #1631: Fixed a bug on removeEventListener
2013-04-29 05:15:52 -07:00
Daan Mortier
c6620859e4 Updated patch for issue #1631 based on feedback 2013-04-29 13:03:05 +02:00
Daan Mortier
52498f1ef9 Issue #1631: Fixed a bug on removeEventListener
Bugfix for issue #1631 where removeEventListener would throw when no event listeners are registered on the object.
2013-04-29 11:53:16 +02:00
Vladimir Agafonkin
b31c9d50b8 add latlng to marker mouse events data, close #1613 2013-04-24 22:34:22 +03:00
Vladimir Agafonkin
f139eea41a fix path canvas race condition, close #1615 2013-04-24 22:29:25 +03:00
Vladimir Agafonkin
ddabd1b445 wrap tile bounds when checking against layer bounds, close #1618 2013-04-24 22:26:52 +03:00
Vladimir Agafonkin
05bbb68cd8 rename zoom/panOptions to zoom/pan in setView options 2013-04-24 18:13:36 +03:00
Vladimir Agafonkin
9660f75642 update build 2013-04-24 17:10:59 +03:00
Vladimir Agafonkin
55d95d1362 options in view change methods, ability to turn on/off animation, closes #1616 2013-04-24 16:24:56 +03:00
Vladimir Agafonkin
c6e9702a08 fix bug that prevented tile loading during pan animation 2013-04-24 13:00:42 +03:00
Vladimir Agafonkin
323245ffc3 define Leaflet as an AMD module as well, close #1364 2013-04-23 13:20:19 +03:00
Vladimir Agafonkin
b61b7b4757 don't scroll to top of the map on focus, close #1228, close #1540 2013-04-23 11:57:42 +03:00
Vladimir Agafonkin
4f15e19d17 fix Popup autoPan regression 2013-04-22 19:23:14 +03:00
Vladimir Agafonkin
94098134a6 fix regression in Map hasLayer 2013-04-22 19:20:19 +03:00
Vladimir Agafonkin
113e55c62a better property name 2013-04-22 18:24:55 +03:00
Vladimir Agafonkin
6fa08d31c6 prevent setView after geolocation if called stopLocate, close #747 2013-04-22 18:24:11 +03:00
Vladimir Agafonkin
110bfb3a30 update build 2013-04-22 17:50:56 +03:00
Vladimir Agafonkin
557ebaad3c cleanup, utilize factories more 2013-04-22 17:49:03 +03:00
Vladimir Agafonkin
29239891d8 minor cleanup 2013-04-22 17:20:34 +03:00
Vladimir Agafonkin
83539136a7 normalize point in Point equals and contains methods 2013-04-22 17:16:14 +03:00
Vladimir Agafonkin
2ec3dc57c0 update build 2013-04-22 17:08:19 +03:00
Vladimir Agafonkin
eafa54635b simplify fitBounds-related code, fix typo 2013-04-22 17:06:42 +03:00
Vladimir Agafonkin
de0cd66f88 Add padding options for map.fitBounds/getBoundsZoom, close #859
Also make fitBounds accept ILayer, and fix bounds for fitWorld, close
#960
2013-04-22 15:21:30 +03:00
Vladimir Agafonkin
d91f56009b add popup open and close events, close #612 2013-04-20 17:18:17 +03:00