Skip to content

int cannot cast to double cause an exception #24

@SimonSoftware

Description

@SimonSoftware

On geojson_parser.dart on line 308/311 must use
LatLng((coords[1] as num).toDouble(), (coords[0] as num).toDouble()));
because if on geojson there's an integer coordinate the coords[1] as double doesn't work and raise an exception on iOS (physical or Simulator).

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