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

Exception when trying to parse geojson #30

Open
@giaur500

Description

@giaur500

I am trying to load and parse simple geojson:

Future<void> parse() async {
    final geojson = GeoJson();

    String json="{\n" +
        "    \"type\": \"Point\",\n" +
        "    \"coordinates\": [\n" +
        "        -105.01621,\n" +
        "        39.57422\n" +
        "    ]\n" +
        "}";

    await geojson.parse(json);

  }

and I am getting exception:

NoSuchMethodError: The getter 'iterator' was called on null.
Receiver: null
Tried calling: iterator

JSON is valid, what am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions