React-native-mapbox-gl: Some items on SymbolLayer disappear if overlapped

Created on 3 Mar 2019  路  7Comments  路  Source: nitaliano/react-native-mapbox-gl

We use the ShapeSource with SymbolLayer to display the map markers. For MapboxGL.StyleSheet style applied on this markers, iconAllowOverlap: true and iconIgnorePlacement: true are set. Is there any other settings are required to prevent the markers from disappearing? Thank you.

53702643-06a03c80-3e6e-11e9-9485-2e6a5a0f12e553702644-0738d300-3e6e-11e9-8913-e53c4b528ebf

Most helpful comment

Hey I found the problem is solved when I add textAllowOverlap: true as style of the SymbolLayer.
For anyone reading this and having the same problem please make sure

    iconAllowOverlap: true,
    textAllowOverlap: true,
    iconIgnorePlacement: true,
    textIgnorePlacement: true,

are added!

All 7 comments

Is it zoom dependent? I have the same issue with SymbolLayer. There is a option for point shape to disable the clustering.

Ok, closing in favor of #1356

Yes it is happening when zoom out. So the solution is cluster={false} on MapboxGL.ShapeSource but it doesn't work as mentioned in #1356 ?

Hi there. I think the issue is not exactly the same as #1356 because if I remove the textField value on the SymbolLayer's style, the map markers will not disappear.

Hey I found the problem is solved when I add textAllowOverlap: true as style of the SymbolLayer.
For anyone reading this and having the same problem please make sure

    iconAllowOverlap: true,
    textAllowOverlap: true,
    iconIgnorePlacement: true,
    textIgnorePlacement: true,

are added!

THANKS THANKS THANKS !!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Craytor picture Craytor  路  3Comments

lernerbot picture lernerbot  路  3Comments

EwanValentine picture EwanValentine  路  3Comments

glennverschooren picture glennverschooren  路  4Comments

smoll picture smoll  路  4Comments