mapbox / mapbox-maps-ios

Interactive, thoroughly customizable maps for iOS powered by vector tiles and Metal
https://www.mapbox.com/mapbox-mobile-sdk
Other
452 stars 149 forks source link

Adding system UIImages to map gives `mismatched image size` #2164

Open laptou opened 3 months ago

laptou commented 3 months ago

Environment

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

persidskiy commented 2 months ago

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