Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

JSON generation #11

Closed
duzenko opened this issue Oct 29, 2019 · 4 comments
Closed

JSON generation #11

duzenko opened this issue Oct 29, 2019 · 4 comments

Comments

@duzenko
Copy link
Contributor

duzenko commented Oct 29, 2019

How do I generate a new geojson from e.g. Google Map polygons?

@synw
Copy link
Owner

synw commented Oct 29, 2019

Create a GeoJsonFeatureCollection object with all it's children and then use

String serializedJson = myFeatureCollection.serialize();

I should add a section in the readme to document that

@duzenko
Copy link
Contributor Author

duzenko commented Oct 30, 2019

Is GeoJsonPolygon.serializeFeature broken? Local variable geoSeries eclipses member field geoSeries in that method resulting in _buildGeoJsonFeature been always fed an empty list.
That entire loop seems to be just out of place.

@synw
Copy link
Owner

synw commented Oct 30, 2019

Pr merged, closing

@synw synw closed this as completed Oct 30, 2019
@duzenko
Copy link
Contributor Author

duzenko commented Oct 31, 2019

Sorry, what about a pub.dev update?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants