serializeFeature method

String serializeFeature(
  1. Map<String, dynamic>? properties
)

Serialize to a geojson feature string

Implementation

String serializeFeature(Map<String, dynamic>? properties) {
  final geoSeries = <GeoSerie?>[];
  for (final line in lines!) {
    geoSeries.add(line.geoSerie);
  }
  return _buildGeoJsonFeature(
      geoSeries, "Line", properties ?? <String, dynamic>{"name": name});
}