mapbox / mapbox/mapbox-maps-flutter

TapInteraction doesn't return full geometry

Open
#1,060 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dart
Stars
380
Forks
204
PR merge metrics
No merged PRs in 30d

Description

Hi everyone,
I'm using a Feature tileset / GeoJSON source and when I tap a feature, I expect the TapInteraction to return the entire geometry, but instead I only get the portion that’s visible in the current viewport.
Is this the intended behavior or a bug?

Docs: https://docs.mapbox.com/flutter/maps/guides/user-interaction/interactions/

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the TapInteraction section of the linked Flutter interaction documentation and reproduce the behavior with a Feature tileset or GeoJSON source. Compare the tapped result with the feature geometry outside the viewport, then determine whether the documented behavior or returned geometry needs to change. Done means the expected behavior is established and verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
api, mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.