Commit Graph

680 Commits

Author SHA1 Message Date
Vladimir Agafonkin
43c2c6a4a0 fix regression in marker setIcon #1768 2013-06-23 19:44:05 -04:00
Vladimir Agafonkin
19637c08a6 fix icon reuse code to properly handle shadow, close #1768 2013-06-23 09:49:34 -04:00
Steve
0ec7e03521 Fix icon.js documentation
ShadowUrl was being referred to as a point.
2013-06-21 13:04:18 -03:00
Vladimir Agafonkin
287f08565b Merge pull request #1761 from popox/marker-togglePopup
Nice to have feature - Toggle the display of a marker's popup on click
2013-06-19 07:40:10 -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
Yohan Boniface
fef0606372 removeEventListener with same context used for adding it 2013-06-14 23:21:33 +02:00
Vladimir Agafonkin
b32a91584b fix 1px popup anchor shift 2013-06-12 14:18:29 +03: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
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
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
Steve Kashishian
62f708a4dc Prevent contextmenu events on popups from falling thru to map 2013-06-04 11:27:42 -04:00
Vladimir Agafonkin
c54b6c13b3 Merge pull request #1726 from Norkart/reuseIconDOM
Reuse icon DOM
2013-06-03 02:14:06 -07: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
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
Steve Kashishian
4c5b700e60 Prevent memory leak in removal of canvas layers 2013-05-30 14:39:03 -04:00
Steve Kashishian
c684fb4652 Prevent infinite loop in adding of canvas CircleMarkers 2013-05-28 19:39:14 -04:00
John Firebaugh
61745f4a30 Set correct initial zIndex on tile layer divs
Fixes #1683.
2013-05-15 13:50:42 -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
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
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
Michael Moore
c1919087fa Allow value of 0 in L.DivIcon's html parameter 2013-04-29 07:19:10 -05: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
4f15e19d17 fix Popup autoPan regression 2013-04-22 19:23:14 +03:00
Vladimir Agafonkin
557ebaad3c cleanup, utilize factories more 2013-04-22 17:49:03 +03:00
Vladimir Agafonkin
d91f56009b add popup open and close events, close #612 2013-04-20 17:18:17 +03:00
Vladimir Agafonkin
3caa19d613 add map.openPopup(content, latlng) convenience 2013-04-20 17:08:52 +03:00
Vladimir Agafonkin
7cb7993571 simplify popup methods, merge #738 2013-04-20 16:58:42 +03:00
Vladimir Agafonkin
5c539bdebb fixed typo in GeoJSON coordsToLatLngs 2013-04-20 15:49:04 +03:00
Vladimir Agafonkin
96748cd5b0 add GeoJSON coordsToLatLng option, close #888, close #866 2013-04-20 15:45:04 +03:00
Vladimir Agafonkin
77efbb8765 add Popup keepInView option, close #1308 2013-04-20 14:50:33 +03:00
Vladimir Agafonkin
340dacde81 remove hasOwnProperty checks, close #1606 2013-04-20 11:32:23 +03:00
Krister Kari
dc07a68ed0 Modify or replace regexes that break javascript lazy evaluation with multi line comments 2013-04-20 02:01:56 +03:00
Vladimir Agafonkin
412f047533 Merge pull request #1462 from jfirebaugh/toGeoJSON
Add #toGeoJSON to various layer types (#712)
2013-04-19 09:55:40 -07:00
Vladimir Agafonkin
ad4f0e6184 rename retina marker image, close #1552, close #1553 2013-04-19 19:44:18 +03:00
Vladimir Agafonkin
ba4d356266 fix tilelayer load event #1565 2013-04-19 19:38:51 +03:00
Vladimir Agafonkin
2a0e284e72 bring autopanstart event back, close #1375 2013-04-19 11:51:59 +03:00
Vladimir Agafonkin
30fe673ca2 don't remove layer grom a group if it doesn't belong to it, close #1383 2013-04-19 11:44:33 +03:00