Open Gnative opened 1 year ago
@Gnative thanks much for looking into this. This does sounds an upstream issue I've submitted a report to Mapbox maps iOS:
Thanks @mfazekas
Hi @mfazekas , any update on this issue
@somasekharkakarla as noted above it's an upstream issue I've submitted a bug report. Once it's fixed it there it should be working with rn as well.
Mapbox Implementation
Mapbox
Mapbox Version
default
Platform
iOS
@rnmapbox/maps
versionmain
Standalone component to reproduce
Observed behavior and steps to reproduce
When using a literal Expression this should get the value from with in an object to use in the expression, this works on mapbox-gl but doesn't on this package.
Following the style expressions through from RN to RCTMGLStyleValue.swift line 191 and printing out the resulting decoded json. I can see the that the object is being decoded to a format rather then an object.
the output
There seems to be two different Expression definitions, Expression.swift and ExpressionOptions.swift, the later having this FormatOptions.. Is it possible that we are referencing the wrong Expression here ?
I'm not sure if this is happening because of how we originally input data to the decoder or if this issue is on Mapbox's side.
Expected behavior
literal should get value from object
Notes / preliminary analysis
No response
Additional links and references
No response