From b7090daad830b45fb2c121232764b8c8cce3e71d Mon Sep 17 00:00:00 2001 From: Jonas Siedentop Date: Tue, 27 Feb 2024 22:17:31 +0100 Subject: [PATCH] minor updates --- lib/src/geojson.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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,