Commit Graph

2522 Commits

Author SHA1 Message Date
Robert Nordan
e58e1ec4e7 Ensure styles are set even when reusing DOM.
This fixes the error found in review.
2013-06-03 07:23:13 +02:00
Vladimir Agafonkin
b9fa955c7c update build 2013-06-02 22:29:48 +03:00
John Firebaugh
2ddcc3d4d4 Fix trailing whitespace 2013-06-01 22:21:07 -07:00
John Firebaugh
4802561e0e Don't fire layerremove if layeradd was never fired 2013-06-01 22:16:53 -07:00
John Firebaugh
51fccc80fe Don't call Layer#onAdd on a layer that has been removed 2013-06-01 22:11:42 -07:00
John Firebaugh
055b3393da Don't call Layer#onRemove if Layer#onAdd was never called 2013-06-01 21:50:18 -07:00
John Firebaugh
01bede20d1 Fix indentation 2013-06-01 21:49:45 -07:00
Robert Nordan
9c379ff0e8 Make test/example actually check ondragstart/end 2013-05-31 14:16:18 +02:00
Robert Nordan
d737c2e94a Reuse DOM object in Marker.SetIcon, fixes #561
If there already exists a DOM object for this marker, reuse it by setting
a new src and style rather than creating a new one.
2013-05-31 12:53:02 +02:00
Robert Nordan
90cb132269 Add a test that shows the DOM change failure
The icon should switch from blue to red and back, but does not in IE
because the DOMelement has disappeared, as in issue #561. Instead, the
mouseover event is fired on any mouse motion in the marker. In addition,
in FF & Chrome the mouseover and mouseout events are continously fired
on any movement, which gives the correct visual results but causes
a lot of superflous event handling.
2013-05-31 12:47:51 +02:00
Vladimir Agafonkin
21aa09b403 Merge pull request #1723 from snkashis/canvas_removals
Prevent memory leak in removal of canvas layers
2013-05-30 15:37:35 -07:00
Steve Kashishian
4c5b700e60 Prevent memory leak in removal of canvas layers 2013-05-30 14:39:03 -04:00
Vladimir Agafonkin
34dbfea015 Merge pull request #1713 from snkashis/circlemarker_loop
Prevent infinite loop in adding of canvas CircleMarkers
2013-05-29 05:47:43 -07:00
Vladimir Agafonkin
47b1d51d30 update build 2013-05-29 12:10:44 +03:00
Vladimir Agafonkin
6387f20206 update packages versions, minor jshinting 2013-05-29 12:10:19 +03:00
Steve Kashishian
c684fb4652 Prevent infinite loop in adding of canvas CircleMarkers 2013-05-28 19:39:14 -04:00
Vladimir Agafonkin
e68d8144f2 add mailmap to gitignore 2013-05-19 13:26:38 +03:00
Vladimir Agafonkin
b4f0b05dcf Merge pull request #1688 from korzhyk/master
TypeError prevention on LatLngBounds extend
2013-05-18 04:41:26 -07:00
Andrii Korzh
d1aa0f3b7e Update LatLngBoundsSpec.js 2013-05-18 13:27:45 +03:00
Andrii Korzh
ef17f99708 Check object when LatLngBounds extend
When LatLngBounds extend, must check the extending object, because empty marker `L.marker().getLatLng()` got `undefined` and `obj[0]` got `TypeError`
2013-05-18 13:20:37 +03:00
John Firebaugh
72ac52cf46 Merge pull request #1684 from scooterw/1670
calculate x position with postion:relative and width/maxWidth
2013-05-17 11:22:44 -07:00
Scooter Wadsworth
76e317d80c smart tabs per contribution guidelines 2013-05-16 11:00:51 -06:00
Scooter Wadsworth
e0a44add0e calculate x position with postion:relative and width/maxWidth 2013-05-16 01:14:04 -06:00
Vladimir Agafonkin
7a84294afd Merge pull request #1683 from jfirebaugh/1683
tile layers added after initial load don't show up until zoomed
2013-05-15 13:54:09 -07:00
John Firebaugh
61745f4a30 Set correct initial zIndex on tile layer divs
Fixes #1683.
2013-05-15 13:50:42 -07:00
mourner
d62ee9e5b3 make latest jshint happy, update deps 2013-05-13 22:57:01 +03:00
Vladimir Agafonkin
3d3e2cd12d Merge pull request #1669 from jfirebaugh/closeOnClick
Popup-specific closeOnClick option
2013-05-10 15:48:06 -07:00
John Firebaugh
ade9c943ff Popup-specific closeOnClick option 2013-05-10 15:22:03 -07:00
Vladimir Agafonkin
6f752d171b simplify zoom anim a bit 2013-05-10 17:28:27 +03:00
Vladimir Agafonkin
47b299346f fix TileLayer 404 errors off-world 2013-05-10 17:15:17 +03:00
Vladimir Agafonkin
c33a60485b context-based off/fire fix 2013-05-10 17:12:46 +03:00
Vladimir Agafonkin
2431f5ec82 minor changelog fix 2013-05-08 13:16:47 +03:00
Vladimir Agafonkin
aae54a34d4 update build 2013-05-08 13:02:15 +03:00
Vladimir Agafonkin
0849d06c1b fix whitespace in event spec, #1661 2013-05-08 12:58:50 +03:00
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