We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8e61619 + 536f054 commit 2a76b4fCopy full SHA for 2a76b4f
leaflet/static/leaflet/leaflet.forms.js
@@ -35,7 +35,7 @@ L.FieldStore = L.Class.extend({
35
}
36
37
var geojson = geom.toGeoJSON();
38
- var is_geometrycollection = (geojson.geometry.type == 'GeometryCollection');
+ var is_geometrycollection = (geojson.geometry && geojson.geometry.type == 'GeometryCollection');
39
if (is_multi && is_generic && !is_geometrycollection) {
40
var flat = {type: 'GeometryCollection', geometries: []};
41
for (var i=0; i < geojson.features.length; i++) {
0 commit comments