GeoJSON GeometryCollection passes consisent params to pointToLayer
This commit is contained in:
parent
774fe5c594
commit
0529a92589
@ -96,10 +96,14 @@ L.Util.extend(L.GeoJSON, {
|
|||||||
return new L.MultiPolygon(latlngs);
|
return new L.MultiPolygon(latlngs);
|
||||||
|
|
||||||
case "GeometryCollection":
|
case "GeometryCollection":
|
||||||
for (i = 0, len = geometry.geometries.length; i < len; i++) {
|
for (i = 0, len = geometry.geometries.length; i < len; i++) {
|
||||||
layer = this.geometryToLayer(geometry.geometries[i], pointToLayer);
|
layer = this.geometryToLayer({
|
||||||
layers.push(layer);
|
"geometry": geometry.geometries[i],
|
||||||
}
|
"type": "Feature",
|
||||||
|
"properties": geojson.properties
|
||||||
|
}, pointToLayer);
|
||||||
|
layers.push(layer);
|
||||||
|
}
|
||||||
return new L.FeatureGroup(layers);
|
return new L.FeatureGroup(layers);
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user