synw / geojson

Utilities to work with geojson data in Dart
MIT License
36 stars 53 forks source link

Custom feature properties? #15

Closed duzenko closed 4 years ago

duzenko commented 5 years ago

I need to send some decoration info for my polygons (e.g. color). How can I do this with GeoJsonFeatureCollection.serialize? image

duzenko commented 5 years ago

Found it

      feature.properties = {
        'color': ColorToHex(area.color),
        'label': area.label.toMap(),
      };
duzenko commented 5 years ago

Blocked by https://github.com/synw/geojson/pull/16

duzenko commented 5 years ago

I can see that my PR got merged but I haven't had the time to test this properly yet. Gimme a few days.

synw commented 5 years ago

Ok, let me know when you think that the serialization features are usable, then we will document them. Oh and btw please run flutter analyze on your commits: we have pretty strict linting rules