Skip to content

App crashes on controller.featuresAtPoint method #382

@BartoszStasiurka

Description

@BartoszStasiurka

Platforms

iOS

Version of flutter-maplibre

0.3.0

Bug Description

When using a more complex map style in the example app, calling the controller.featuresAtPoint method causes the app to crash. The issue occurs after tapping on a map feature or city label, especially when the map is displaying land areas with detailed vector data.

Steps to Reproduce

  1. Open feature_query_page.dart in the example app
  2. Use a more complex map style, e.g. MapStyles.openMapTilesBright.uri
  3. Run the app
  4. Move the map over land and tap on a feature or city name

Expected Results

The app should return features at the tapped point without crashing.

Actual Results

The app crashes when tapping on some map feature.

Code Sample

MapLibreMap(
  options: MapOptions(
    initZoom: 7,
    initCenter: const Geographic(lon: 0.1, lat: 0.1),
    initStyle: MapStyles.openMapTilesBright.uri,
  ),

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    To Do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions