Closed wmonecke closed 1 year ago
@wmonecke thank much for the report. However when running it I'm getting error. Pls fix, so I can try to reproduce the issue, thanks.
@mfazekas Any ideas on what could be breaking? If I run this locally it is working for me (as you can see in the video).
I’ve tried on android. Some layerNumber values were undefined
@mfazekas Could we plz reopen this issue? The code has been updated and the issue is still present even after debugging this for 3 days straight. The code is working as expected on web.
@wmonecke sorry I still don't understand the bug report. I see this on android emulator:
I'm not sure what's should be I seeing or what's wrong here. Please be specific. Also updated linter so require('../assets/example.png')
should be allowed now.
@mfazekas You should be seeing the markers on the map (all the small red and green round ones that appear in the video above).
Did you zoom out a bit?
As you can see in the video not all markers are being rendered on screen. You will be seeing 5 icons but if you check the data variable it contains the data for 8 markers.
I hope this clarifies things a bit better. Updated the code with ../assets/example.png
@wmonecke pls place and image under ../assets/example.png, please get the same example snippet you're reporting here working in your app. Because this component will not render anything for you as well I'm sure. Even better if you repro the issue in our example app as well.
I'm sorry but we have very limited resources, and we don't provide free support.
Also please verify on latest versions.
I'm not sure if it's entirely related, but I've experienced issues with SymbolLayers not displaying correctly when the associated feature has a property with a value of null
. From the data @wmonecke provided, there are some features that fit this description. Perhaps try removing any keys with null values, or replace null
with an empty string.
@Dru1X This was it! Thank you very much.
@mfazekas FYI. If any properties
has null
as its value it will not be rendered. This a discrepancy with web.
@wmonecke This should have been fixed in 10.13+ version of native libs: https://github.com/mapbox/mapbox-maps-ios/blob/cf286de094c7bd413697ab67da0d5866f790009e/CHANGELOG.md?plain=1#L46
Mapbox Implementation
Mapbox
Mapbox Version
default
Platform
iOS, Android
@rnmapbox/maps
version10.0.4-rc.0
Standalone component to reproduce
Observed behavior and steps to reproduce
Currently not all icons in the data are being rendered. We have the same logic in web an we are able to render all markers.
On mobile the data is present and as soon as we remove the filter the icons show up, albeit with the wrong icon.
Expected behavior
The right icons to be rendered.
Notes / preliminary analysis
In the video, you will see that there are 5 icons rendered with their corresponding icon.
After removing the filter and reloading the simulator you can see that 8 icons are rendered on the screen however without the correct icon. This means that somehow the filter is removing additional icons. You can see the data returned by our API in the code above.
Additional links and references
https://github.com/rnmapbox/maps/assets/24256469/2c805256-8f3b-45b7-b74d-74b2172375ac