Commit Graph

2452 Commits

Author SHA1 Message Date
Vladimir Agafonkin
4ae3e9d87c Merge pull request #1762 from sheppard/master
pass through coordsToLatLng when processing GeometryCollection
2013-06-17 23:13:12 -07:00
S. Andrew Sheppard
bea3e4c13e pass through coordsToLatLng when processing GeometryCollection 2013-06-17 20:31:24 -05:00
Paul Bonaud
1af9769ed0 Toggle the display of a marker s popup on click 2013-06-16 22:13:31 +02:00
Vladimir Agafonkin
6d33627f66 Merge pull request #1760 from yohanboniface/markerdrag_off
remove EventListener with same context used for adding it
2013-06-14 15:39:14 -07:00
Yohan Boniface
fef0606372 removeEventListener with same context used for adding it 2013-06-14 23:21:33 +02:00
danzel
016f635616 update build 2013-06-14 10:55:59 +12:00
Vladimir Agafonkin
b32a91584b fix 1px popup anchor shift 2013-06-12 14:18:29 +03:00
Vladimir Agafonkin
495d2dc3b3 add layers icon svg source 2013-06-12 14:18:29 +03:00
Vladimir Agafonkin
bcb9a4db68 prettify marker svg source 2013-06-12 14:18:29 +03:00
Vladimir Agafonkin
91db6cc863 Merge pull request #1754 from danzel/master
Fix SetIcon with DivIcons
2013-06-12 00:16:25 -07:00
danzel
e36181dd66 jshint fixes. 2013-06-12 16:21:28 +12:00
danzel
b5f3b2a44f Tidy up ugly icon-swap code. 2013-06-12 16:18:42 +12:00
danzel
1a1cfb2e60 Make Marker setIcon unit tests better. 2013-06-12 16:18:20 +12:00
danzel
11e227bf6f Don't say this so much, options is in local scope. 2013-06-12 16:06:27 +12:00
danzel
fa45913505 Make Icon/DivIcon reuse not try reuse the wrong dom element type. 2013-06-12 16:05:42 +12:00
danzel
7f2eff363b Add support to DivIcon for reusing a div. Fixes #1753. Still issues remain (Can't change a marker with a DivIcon to have an image Icon or vice versa) 2013-06-12 15:55:03 +12:00
Vladimir Agafonkin
9f71539b88 update build 2013-06-11 17:11:40 +03:00
Vladimir Agafonkin
043fa18f1a Merge pull request #1745 from jec006/calculate-y-mouse
Properly calculate the y position of the element when parent is positioned relatively
2013-06-11 07:10:16 -07:00
Vladimir Agafonkin
e5965aaa22 make all WMS request keys uppercase, close #1751 2013-06-11 16:42:35 +03:00
Vladimir Agafonkin
c807d10a02 better regexp for image folder detection, close #1657 2013-06-11 16:05:33 +03:00
Vladimir Agafonkin
66d6403ddd update layers icon, add retina version, cleaner popup styles, close #1739 2013-06-11 15:44:21 +03:00
Vladimir Agafonkin
ae10f4d1fc Merge pull request #1750 from jec006/unbind-moveend-maxbounds
Unbind moveend event when maxBounds removed
2013-06-10 15:47:48 -07:00
Josh Caldwell
df5e43a062 Unbind moveend event when maxBounds removed 2013-06-10 18:32:20 -04:00
Josh Caldwell
84c5114345 Properly calculate the y position of the element when positioned relative 2013-06-07 12:21:15 -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