Closed mojtabadarzi closed 5 years ago
https://github.com/map-ir/mapir-mapbox/blob/master/docs/PointAnnotation.md this is our documentation for marker!
migrate to ShapeSource and SymbolLayer and mapbox api 7
PointAnnotation laggy on changing map cords
how can set custom icon ?
how can set custom icon?
Do you try this?
<Mapir.Marker coordinate={{ latitude, longitude }}>
<View>
<Image
style={{ width: 100, height: 42 }}
source={{ uri: 'https://some_image_url...' }}
/>
<Text>
{title}
</Text>
</View>
</Mapir.Marker>
yes ,i set a png image but its not work for me !!
You could add children in Mapir.Marker and put
<Image/>
<Text>
, like following :