mapbox / mapbox/mapbox-maps-android
Method to get source features
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 578
- Forks
- 161
- PR merge metrics
- No merged PRs in 30d
Description
New Feature
It would be helpful to have a function that returns source features, regardless tiled data
Why
I need to get the source feature, but when I use querySourceFeatures I get duplicate elements (the source contains only one feature, but I get 6). I know that the method can return duplicates as it is in the documentation, but I couldn't find a way to obtain the original feature. The feature has id and some properties, but I can't filter the result as all returned elements have the same ids and properties. The only difference between them are coordinates. Now I'm using geojsons sources so my workaround is reading the feature directly from file, but I'm curious if there is a possibility to get the feature from the map. Also, I'm planning to try the vector tiles and I'm wondering how I can handle it then.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the existing querySourceFeatures API and its documentation, then trace how source features are represented for GeoJSON and vector-tile data. Define how a caller should obtain the original feature without tile-induced duplicates, and document or test the expected behavior for both source types.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- api, mobile-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100