mapbox / mapbox/mapbox-maps-ios

Cannot add features after remove features

Open
#2,083 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged bug :beetle: v11
Dominant language
Swift
Stars
601
Forks
196
PR merge metrics
No merged PRs in 30d

Description

Environment

  • Xcode version: 15.1
  • iOS version: 17.2
  • Devices affected: iPhone 15
  • Maps SDK Version: 11.0.0

Observed behavior and steps to reproduce

Calling removeGeoJSONSourceFeatures and then calling addGeoJSONSourceFeatures will not add the new features to the source. It works without issues if I set a delay between the calls.

Expected behavior

The new features should be added to the source without the need to set a delay.

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 by reproducing the issue with removeGeoJSONSourceFeatures followed immediately by addGeoJSONSourceFeatures in an iOS app using Maps SDK 11.0.0. Trace the GeoJSON source feature-update path and verify that newly added features appear without adding a delay between the calls.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.