snkashis
5524db2816
condition on one line
2013-01-21 10:14:42 -05:00
snkashis
65aad99297
Revert "whitespace fix?"
...
This reverts commit 9856a66864
.
2013-01-20 20:18:48 -05:00
Steve
9856a66864
whitespace fix?
2013-01-20 20:06:52 -05:00
Steve
c0210009df
whitespace again
2013-01-20 19:39:01 -05:00
Steve
03a775c69b
Trying to fix whitespace
2013-01-20 19:38:12 -05:00
Steve
52b445a36d
Simplify features check
2013-01-20 19:35:18 -05:00
snkashis
c43e72da16
Handle arrays of feature collections
2013-01-20 19:13:43 -05:00
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
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
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
Brian Herbert
2a38a809d3
Allow null GeoJSON geometries.
...
This change checks if a geometry/ies in GeoJSON are set as null, in
which case it will skip it.
2012-12-27 12:15:08 +09:00
Vladimir Agafonkin
a089cd4337
fix regression in GeoJSON resetStyle, close #1112
2012-12-12 15:42:21 +02:00
Vladimir Agafonkin
edeea11919
fix GeoJSON resetStyle not fully resetting, close #1112
2012-12-11 17:16:39 +02:00
Vladimir Agafonkin
f5cfab73a1
remove LatLng coords wrapping/clamping, add explicit LatLng wrap method
2012-12-11 15:02:47 +02:00
Vladimir Agafonkin
dbd4da6255
add shortcuts for extend, bind, stamp and setOptions
2012-11-07 20:30:56 +02:00
Vladimir Agafonkin
2b225cc3a8
more whitespace fixes
2012-11-07 18:46:59 +02:00
Calvin Metcalf
0529a92589
GeoJSON GeometryCollection passes consisent params to pointToLayer
2012-10-27 22:10:20 -04:00
mourner
8d6301cf07
Add geojson setStyle and resetStyle methods, layer feature property
2012-08-04 10:56:14 +03:00
Vladimir Agafonkin
c6bae3ee5c
support arrays in geojson addData
2012-07-12 15:37:43 +03:00
Vladimir Agafonkin
92c704f33b
Improved GeoJSON API, closed #315 , closed #715
2012-07-09 14:42:44 +03:00
Vladimir Agafonkin
3e24ed5400
more work on simplified api
2012-07-05 14:45:06 +03:00
Paolo e Stefano Mainardi
4aed9ed533
Keep geometry object on "featureparse" event.
2012-06-04 03:15:59 +03:00
Paolo e Stefano Mainardi
0ca0f2275a
Add coordinates to featureparse event.
2012-06-04 03:04:38 +03:00
mourner
477c1109eb
clean up, move attribution prefix arg to options
2012-02-23 11:01:03 +02:00
mourner
e3d0e24a0c
cleaning up and formatting code
2012-02-15 13:17:25 +02:00
mourner
83af28eae9
Fixed GeoJSON date line rendering bug, closed #354
2011-12-15 12:07:35 +02:00
mourner
8c6b5b3df5
Fixed GeoJSON pointToLayer not working inside a GeometryCollection, closed#391
2011-12-09 18:19:58 +02:00
mourner
a9720fcb43
Final jshinting without remorse
2011-12-09 16:51:31 +02:00
mourner
b03f6eff07
Some really heavy jshinting and whitespace fixes
2011-12-09 16:35:15 +02:00
mourner
fccecb419f
Whitespace fixes
2011-12-08 17:53:17 +02:00
Kevin Mahoney
a0d8d304c6
Extend the GeoJSON layer from FeatureGroup to allow click events.
2011-08-30 15:50:12 +01:00
Mourner
457a4355fc
parse string coordinates in GeoJSON, closes #136
2011-06-17 16:46:03 +03:00
Mourner
233e63af53
minor GeoJSON refactoring, reverse option in coordsToLatLngs
2011-06-16 13:56:39 +03:00
Carl Meyer
2dc06b5239
Fixed MultiPolygon bug in GeoJSON support.
2011-06-11 18:11:08 -05:00
Mourner
3b58a8bbe7
GeoJSON (finally!), setStyle for paths
2011-06-10 14:26:16 +03:00