chuyentt / geojson_vi

An Open-Source Dart and Flutter Library for Efficiently Handling GeoJSON Data in Compliance with RFC 7946
https://pub.dev/packages/geojson_vi
MIT License
15 stars 10 forks source link

Creating Feature Collection Object from REST API #2

Closed rachmatg closed 4 years ago

rachmatg commented 4 years ago

Hi Chutentt,

I need to make a GeoJSON object from REST api, so I modify your geojson_vi.dart and add this: export 'src/classes/feature_collection.dart';

And just use this: var features = new GeoJSONFeatureCollection.fromMap(geo);

Where geo is geojson object returned from REST api.

It works well, so may be you want to update in the next release.

Thank you.

chuyentt commented 4 years ago

Hi Chutentt,

I need to make a GeoJSON object from REST api, so I modify your geojson_vi.dart and add this: export 'src/classes/feature_collection.dart';

And just use this: var features = new GeoJSONFeatureCollection.fromMap(geo);

Where geo is geojson object returned from REST api.

It works well, so may be you want to update in the next release.

Thank you.

Thank you, I've just released the new version 1.2.3. Please update the package and run a gain.