Commit Graph

2327 Commits

Author SHA1 Message Date
Josh Caldwell
df5e43a062 Unbind moveend event when maxBounds removed 2013-06-10 18:32:20 -04:00
Vladimir Agafonkin
bd803810a6 Merge pull request #1732 from snkashis/contextpopup
Prevent contextmenu events on popups from falling thru to map
2013-06-04 08:31:24 -07:00
Steve Kashishian
62f708a4dc Prevent contextmenu events on popups from falling thru to map 2013-06-04 11:27:42 -04:00
Vladimir Agafonkin
aaad3cbe2f fix hinting error, update build 2013-06-03 12:39:28 +03:00
Vladimir Agafonkin
c54b6c13b3 Merge pull request #1726 from Norkart/reuseIconDOM
Reuse icon DOM
2013-06-03 02:14:06 -07:00
Vladimir Agafonkin
9295fde52f Merge pull request #1729 from jfirebaugh/add-remove
Don't call Layer#onRemove if Layer#onAdd was never called
2013-06-03 02:12:23 -07:00
Vladimir Agafonkin
73adefe1ac update jshint to 2.1.3, reenable jshint white - big thanks to @antonkovalyov 2013-06-03 12:08:34 +03:00
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