mapbox / mapbox/mapbox-maps-ios

Custom tile server refresh

Open
#947 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged feature :green_apple:
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.