diff --git a/lib/src/geojson.dart b/lib/src/geojson.dart index 52c3bbc..c967e74 100644 --- a/lib/src/geojson.dart +++ b/lib/src/geojson.dart @@ -278,8 +278,6 @@ class Position extends CoordinateType { /// You can either specify 4 or 6 parameters /// If you are using the default constructor with two dimensional positions (lng + lat only), please use the constructor like this: /// `BBox(lng1, lat1, lng2, lat2);` - -// ToDo: different constructors for 2D and 3D positions! class BBox extends CoordinateType { BBox( /// longitude 1 @@ -685,7 +683,7 @@ class Feature extends GeoJSONObject { @override Map toJson() => super.serialize({ - if (id != null) 'id': id, + 'id': id, 'geometry': geometry!.toJson(), 'properties': properties, ...fields,