backport the geojson featurecollection arrays fix

This commit is contained in:
Vladimir Agafonkin 2013-02-06 15:21:29 +02:00
parent 0dcbed845e
commit 241cc7dc04

View File

@ -21,7 +21,7 @@ L.GeoJSON = L.FeatureGroup.extend({
if (features) { if (features) {
for (i = 0, len = features.length; i < len; i++) { for (i = 0, len = features.length; i < len; i++) {
// Only add this if geometry or geometries are set and not null // Only add this if geometry or geometries are set and not null
if (features[i].geometries || features[i].geometry) { if (features[i].geometries || features[i].geometry || features[i].features) {
this.addData(features[i]); this.addData(features[i]);
} }
} }