Maps: [Android] Support for showing custom view over annotation

Created on 9 Jun 2019  路  4Comments  路  Source: react-native-mapbox-gl/maps

Description
I cannot find a way to show a custom View component over an Annotation on Map. Something similar to the old deprecated PointAnnotation where children of PointAnnotation were shown over a point on the map.

PointAnnotation works perfectly on iOS though.

To Reproduce

on Android

<MapboxGL.Annotation key={key} id={id} coordinates={coordinates}>
     <View style={styles.annotationContainer}>
           <Text>FLOATING ANNOTATION TEXT</Text>
    </View>
</MapboxGL.Annotation>

or

<MapboxGL.PointAnnotation key={key} id={id} coordinate={coordinates}>
     <View style={styles.annotationContainer}>
           <Text>FLOATING ANNOTATION TEXT</Text>
    </View>
</MapboxGL.PointAnnotation>

Expected behaviour
Floating text over coordinates

Versions (please complete the following information):

  • Platfrom: Android
  • Device: OnePlus 6T
  • OS: Android 9
  • SDK Version 7.0.0
  • React Native Version 0.59.8
wontfix

Most helpful comment

Is there any plan to address this? Should applications that rely on this functionality look at migrating away from Mapbox? Any reason why this should work on iOS and not Android?

All 4 comments

Could someone please help with this issue?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Is there any plan to address this? Should applications that rely on this functionality look at migrating away from Mapbox? Any reason why this should work on iOS and not Android?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SethArchambault picture SethArchambault  路  3Comments

magnusburton picture magnusburton  路  3Comments

calypsow777 picture calypsow777  路  5Comments

bllanos picture bllanos  路  3Comments

atomheartother picture atomheartother  路  3Comments