mapbox / mapbox/mapbox-maps-ios

Update coordinates of ImageSource

Open
#1,794 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

## Environment

- Xcode version: 14.1
- iOS version: 16.1
- Devices affected:
- Maps SDK Version: 10.9.0-beta.1

## Observed behavior and steps to reproduce

ImageSource does not have update coordinates method. We can only update image using mapView.mapboxMap.style.updateImageSource(withId: <#T##String#>, image: <#T##UIImage#>) method

## Required

ImageSource should have update coordinates method. How to update ImageSource coordinates after adding ?

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 ImageSource API and the mapView.mapboxMap.style.updateImageSource(withId:image:) entry point described in the issue. Determine how coordinates should be updated after the source is added, and verify that an ImageSource can change coordinates without replacing the image.

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
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.