Commit Graph

2386 Commits

Author SHA1 Message Date
oslek
7dd7e4f699 Robust array type check for cross-frame support
In a multi-frame DOM environment, if setView is called with an array for
the first parameter, a subsequent call to getBounds raises "Invalid
LatLng object" exception. This is the case if the array passed to
setView was created outside the iFrame that contains the map. It causes
the array test using "instanceof" in L.latLng to fail, and
_initialTopLeftPoint to not being properly initialized.

Thank you to Juriy Zaytsev for the full explaination:
http://perfectionkills.com/instanceof-considered-harmful-or-how-to-write-a-robust-isarray/
John Resig and Dean Edwards post comments and concur.
2013-01-14 14:04:50 -08:00
Dave Leaver
a598e2bc75 Merge pull request #1278 from danzel/master
Fix jshint unhappiness (Thanks @Guiswa)
2013-01-14 13:53:01 -08:00
danzel
365a5b3b02 Fix jshint unhappiness (Thanks @Guiswa) 2013-01-15 10:51:36 +13:00
Vladimir Agafonkin
dad3996d0e Merge pull request #1097 from calvinmetcalf/GeometryCollection
GeoJSON GeometryCollection passes consisent params to pointToLayer
2013-01-14 06:33:28 -08:00
Calvin Metcalf
0ebbd7553e fixed the whitespace and also removed the quotes in object keys 2013-01-14 07:25:34 -05:00
Vladimir Agafonkin
3f4e890b58 Merge pull request #1174 from danzel/master
Add retina marker icon support and retina-ize the default icon
2013-01-14 02:50:28 -08:00
danzel
6eefa8ad0e Another pass on marker-icon, better grid fitting. 2013-01-14 16:12:58 +13:00
mourner
aa39185516 update changelog 2013-01-14 01:20:50 +02:00
Yohan Boniface
41d0e3e7f1 Merge branch 'gh-pages' of git://github.com/CloudMade/Leaflet into gh-pages 2013-01-14 00:17:56 +01:00
Vladimir Agafonkin
7fb3609a92 Oops, revert accidental commit 2013-01-14 00:42:15 +02:00
mourner
333899ca51 add Popup zoomAnimation option, fix #999 2013-01-14 00:23:45 +02:00
mourner
5eb4f4686d fix a bug with FeatureGroup bindPopup not accepting options 2013-01-14 00:23:04 +02:00
Vladimir Agafonkin
f54f79e9ec Merge pull request #1276 from jacobtoye/gh-pages
Update Leaflet.draw plugin link
2013-01-13 13:16:19 -08:00
jacobtoye
b0bf16d1ec Update plugin link to new location. 2013-01-14 10:04:10 +13:00
Vladimir Agafonkin
1f9b4db847 Merge pull request #1275 from bencevans/patch-2
Update leaflet-locationfilter plugin link
2013-01-13 11:16:59 -08:00
Ben Evans
4937dce148 Update leaflet-locationfilter plugin link 2013-01-13 15:48:00 +00:00
Vladimir Agafonkin
cbd6cf52e8 Update README.md 2013-01-13 01:58:55 +02:00
Vladimir Agafonkin
c2064ef204 Merge pull request #1273 from snkashis/fix_circle_clicks
Remove canvas click handler with onRemove, #1006
2013-01-12 14:02:53 -08:00
snkashis
b3a7f2ffb7 Remove click handler with onRemove 2013-01-12 16:55:13 -05:00
Vladimir Agafonkin
4cfef573aa Merge pull request #1269 from danzel/gh-pages
Update Leaflet.markercluster link
2013-01-11 13:31:57 -08:00
danzel
bc2ee40b32 Update Leaflet.markercluster link 2013-01-12 10:28:43 +13:00
Vladimir Agafonkin
eb518f33ac Merge branch 'master' of github.com:Leaflet/Leaflet 2013-01-11 18:50:44 +02:00
Vladimir Agafonkin
4ebfeb9d18 udpate copyright to be more precise 2013-01-11 18:50:21 +02:00
Vladimir Agafonkin
116671fa55 Merge pull request #1013 from fdlk/set-radius-in-style
radius is part of CircleMarker style so should be changeable in using setStyle();
2013-01-11 08:43:18 -08:00
Vladimir Agafonkin
88a9dbd053 Merge pull request #1216 from moonlite/better-zoomcontrol-borders-take2
Smaller inner border radius.
2013-01-11 08:40:05 -08:00
Vladimir Agafonkin
bc4104c708 fix TileLayer.brintToFront/Back on IE6-8, close #1168 2013-01-11 18:33:17 +02:00
Vladimir Agafonkin
3d1bb11919 Merge branch 'master' of github.com:Leaflet/Leaflet 2013-01-11 18:21:03 +02:00
Vladimir Agafonkin
64ca0af124 attempt to fix Android 4.1 zoom freeze, #1182 2013-01-11 18:20:40 +02:00
Vladimir Agafonkin
6dd0dea1aa double quotes to single 2013-01-11 18:19:50 +02:00
Vladimir Agafonkin
58d13cac1d Merge pull request #1265 from krekoten/contributing-fix
Add missing "be" to CONTRIBUTING.md
2013-01-11 04:14:09 -08:00
Мар'ян Крекотень (Marjan Krekoten')
c7c6843f87 Add missing "be" to CONTRIBUTING.md 2013-01-11 14:12:37 +02:00
Vladimir Agafonkin
728b8e08b8 fix star button with regards to new repo url 2013-01-11 13:50:36 +02:00
Vladimir Agafonkin
ff03b7038d update links to point to the new repo url 2013-01-11 13:48:54 +02:00
Vladimir Agafonkin
f237c3e174 update link to the new repo location 2013-01-11 13:42:15 +02:00
Vladimir Agafonkin
5b486a494c update license year 2013-01-11 13:42:01 +02:00
Vladimir Agafonkin
e5c93fa5ed Merge pull request #1260 from jieter/gh-pages
Remove LatLngBounds reference Bounds documentation
2013-01-08 02:44:31 -08:00
Vladimir Agafonkin
8c481d5a87 update build 2013-01-08 12:18:16 +02:00
Vladimir Agafonkin
80d0da1bdf fix iOS vectir zoom anim regression, close #1259 2013-01-08 12:18:10 +02:00
Jan Pieter Waagmeester
ad1833a3aa Remove LatLng from the Bounds documentation 2013-01-07 15:01:07 +01:00
Yohan Boniface
abe8ea681d Merge branch 'gh-pages' of git://github.com/CloudMade/Leaflet into gh-pages 2013-01-03 17:38:33 +01:00
Vladimir Agafonkin
da2d3f71ba Merge pull request #1256 from joker-x/patch-1
Added geoCSV plugin for Leaflet to plugins.md
2013-01-03 02:10:32 -08:00
Iván Eixarch
29596dc9e4 Added geoCSV plugin for Leaflet
http://joker-x.github.com/Leaflet.geoCSV/
2013-01-03 11:01:43 +01:00
Yohan Boniface
7f6c517eb4 Merge branch 'gh-pages' of git://github.com/CloudMade/Leaflet into gh-pages 2013-01-02 10:43:10 +01:00
Vladimir Agafonkin
9005ff93b2 Merge pull request #1253 from ismyrnow/gh-pages
Add Leaflet-semicircle to plugin list
2012-12-31 16:16:22 -08:00
Ishmael Smyrnow
a8c85fc7d0 Add Leaflet.FunctionalTileLayer to plugin list. 2012-12-31 16:22:38 -05:00
Vladimir Agafonkin
1677a7d40d Merge pull request #1251 from Guiswa/dev/guiswa/issue1226
Fix issue 1226: IE10 "Invalid argument" error in version 0.5 defining retina
2012-12-31 11:25:37 -08:00
Aaron King
c2869cee5d Fix issue 1226: IE10 "Invalid argument" error in version 0.5 defining retina
https://github.com/CloudMade/Leaflet/issues/1226

Credit to dreamfall for the fix.
2012-12-31 10:39:24 -08:00
Vladimir Agafonkin
590bbd9ba7 Merge pull request #1245 from danzel/ie
Re-add L.Browser.ie as it is used in debug\vector\geojson.html(113).
2012-12-28 04:49:46 -08:00
Vladimir Agafonkin
733666bcab Merge pull request #1240 from brianherbert/allow-null-geojson
Allow null GeoJSON geometries.
2012-12-28 04:49:31 -08:00
Brian Herbert
971e55b911 Simplifying condition for null geojson geometries.
Used feedback from @mourner to make the change from the pull request
#1240
2012-12-28 11:56:19 +09:00