maps icon indicating copy to clipboard operation
maps copied to clipboard

[Android] Support for showing custom view over annotation

Open MariaSyed opened this issue 7 years ago • 4 comments

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

MariaSyed avatar Jun 09 '19 21:06 MariaSyed

Could someone please help with this issue?

SethTyemill avatar Jul 26 '19 17:07 SethTyemill

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.

stale[bot] avatar Sep 24 '19 17:09 stale[bot]

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?

stefen avatar Sep 24 '19 20:09 stefen

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.

stale[bot] avatar Nov 23 '19 21:11 stale[bot]