You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have migrated from v1 to v2 and now I have class mismatch errors all over the place.
Look like Mapbox sdk is having it's own Point class that extends turf Point. Which is fine I guess.
But the issue is that if I use FeatureCollection.fromJson(jsonDecode(data) as Map<String, dynamic>); as FeatureCollection is not a class from Mapbox but from (geotype but let's say turf) then when I try to to pass this featureCollection back to Mapbox is fails with the following error:
type 'Point' is not a subtype of type 'Point' in type cast where
Point is from package:geotypes/src/geojson.dart
Point is from package:mapbox_maps_flutter/mapbox_maps_flutter.dart
v2 is currently not usable to me.
The text was updated successfully, but these errors were encountered:
I have migrated from v1 to v2 and now I have class mismatch errors all over the place.
Look like Mapbox sdk is having it's own Point class that extends turf Point. Which is fine I guess.
But the issue is that if I use
FeatureCollection.fromJson(jsonDecode(data) as Map<String, dynamic>);
as FeatureCollection is not a class from Mapbox but from (geotype but let's say turf) then when I try to to pass this featureCollection back to Mapbox is fails with the following error:v2 is currently not usable to me.
The text was updated successfully, but these errors were encountered: