Open laptou opened 3 months ago
When I try to use the following code to add system UIImage to a MapboxMap called map:
UIImage
MapboxMap
map
try map.addImage( UIImage(systemName: "mappin")!, id: "pin" )
I get an error: StyleError(rawValue: "mismatched image size").
StyleError(rawValue: "mismatched image size")
I should be able to use this image the same way I can use images that come from my Assets.
Assets
Hi, thank you for reporting this. This is a known issue (internal ticket MAPSIOS-817)
Environment
Observed behavior and steps to reproduce
When I try to use the following code to add system
UIImage
to aMapboxMap
calledmap
: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