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.
1 parent cae97cb commit d45cbf8Copy full SHA for d45cbf8
leaflet/static/leaflet/leaflet.forms.js
@@ -185,7 +185,8 @@ L.GeometryField = L.Class.extend({
185
this.drawnItems.addLayer(l);
186
}, this);
187
}
188
- else if (geometry instanceof L.Polygon || geometry instanceof L.Polyline) {
+ else if (this.options.collection_type !== 'featureGroup'
189
+ && (geometry instanceof L.Polygon || geometry instanceof L.Polyline)) {
190
var latlngs = geometry.getLatLngs();
191
for (var i = 0; i < latlngs.length; i++) {
192
this.drawnItems.addLayer(L[this.options.collection_type](latlngs[i]));
0 commit comments