mapbox / mapbox/mapbox-maps-ios
Custom tile server refresh
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 601
- Forks
- 196
- PR merge metrics
- No merged PRs in 30d
Description
There is a `VectorSource` in the app, that uses `https://[some_url_here]/{z}/{x}/{y}.pbf` as a `tiles` url.
The tile loads data correctly initially and also on map dragging or zooming correctly refreshes.
Is there a way to trigger tile refresh from code without manual map dragging or zooming? (the data is updated in real time so need to update periodically no matter if map is moving or not)
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 with the VectorSource configured with the `{z}/{x}/{y}.pbf` tile URL and inspect the available tile refresh or invalidation entry points. Confirm the result by checking that updated data is fetched periodically while the map remains stationary, without dragging or zooming.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 42/100