Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AddSource with a GeometryCollection #383

Open
imerzi opened this issue Feb 19, 2024 · 2 comments
Open

AddSource with a GeometryCollection #383

imerzi opened this issue Feb 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@imerzi
Copy link

imerzi commented Feb 19, 2024

Hi, i am trying to add a source with a GeometryCollection but it's not really working.

GeometryCollection is not supported yet ?

static Future<void> _drawGeomData(IsarLayer layer, MaplibreMapController mapController, WidgetRef ref) async {
    await mapController.addSource(
      layer.id,
      GeojsonSourceProperties(
        data: layer.geom?.toMap(),
      ),
    );

    await MapService.addLayerStyle(layer.style, layer.id, mapController);
  }

JNI DETECTED ERROR IN APPLICATION: can't call java.lang.Object[] java.util.List.toArray() on null object

@imerzi
Copy link
Author

imerzi commented Feb 19, 2024

Here is an example of data passed:

{bbox: [-0.5712632536888123, 44.860328674316406, -0.5360799431800842, 44.86923599243164], geometries: [{coordinates: [-0.571263257, 44.86433784], type: Point}, {coordinates: [-0.556603536, 44.869236012], type: Point}, {coordinates: [-0.536079926, 44.860329935], type: Point}], type: GeometryCollection}

@m0nac0
Copy link
Collaborator

m0nac0 commented Mar 3, 2024

I think it should be supported by the underlying MapLibre native libraries. Can you share some stacktrace or do you see more error messages that would allow us to hunt down the specific line where the error occurs?

@josxha josxha added the bug Something isn't working label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants