nitaliano / react-native-mapbox-gl

A Mapbox GL react native module for creating custom maps
Other
2.16k stars 699 forks source link

how can implement dynamic pressable marker , and change marker after press ? #1707

Open mojtabadarzi opened 3 years ago

mojtabadarzi commented 3 years ago

i see some example on doc about implementation this issue but none of these not working !! one example says use iconImage like this : ... iconImage : ['get' : 'icon'] ... but i get error by this code !! how can pass shape to ShapeSource with specific icon and change it when i press it like this image i share , thank you IMAGE