Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding system UIImages to map gives mismatched image size #2164

Open
laptou opened this issue Apr 12, 2024 · 1 comment
Open

Adding system UIImages to map gives mismatched image size #2164

laptou opened this issue Apr 12, 2024 · 1 comment
Labels
bug 🪲 Something is broken!

Comments

@laptou
Copy link

laptou commented Apr 12, 2024

Environment

  • Xcode version: 15.3
  • iOS version: 17.4
  • Devices affected: N/A
  • Maps SDK Version: 11.3.0.rc1

Observed behavior and steps to reproduce

When I try to use the following code to add system UIImage to a MapboxMap called map:

try map.addImage(
  UIImage(systemName: "mappin")!,
  id: "pin"
)

I get an error: StyleError(rawValue: "mismatched image size").

Expected behavior

I should be able to use this image the same way I can use images that come from my Assets.

Notes / preliminary analysis

Additional links and references

@laptou laptou added the bug 🪲 Something is broken! label Apr 12, 2024
@persidskiy
Copy link
Contributor

persidskiy commented May 13, 2024

Hi, thank you for reporting this. This is a known issue (internal ticket MAPSIOS-817)

mapbox-github-ci-writer-public-1 bot pushed a commit that referenced this issue May 31, 2024
Co-authored-by: Roman Gardukevich <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something is broken!
Projects
None yet
Development

No branches or pull requests

2 participants