|
|
|
@ -15,13 +15,13 @@ L.GeoJSON = L.FeatureGroup.extend({
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
addData: function (geojson) {
|
|
|
|
|
var features = L.Util.isArray(geojson) ? geojson : geojson.features,
|
|
|
|
|
var features = L.Util.isArray(geojson) ? geojson : geojson.features,
|
|
|
|
|
i, len;
|
|
|
|
|
|
|
|
|
|
if (features) {
|
|
|
|
|
for (i = 0, len = features.length; i < len; i++) {
|
|
|
|
|
// 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]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|