Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Image Marker Support #34

Open
alyjan opened this issue Oct 12, 2023 · 3 comments
Open

Custom Image Marker Support #34

alyjan opened this issue Oct 12, 2023 · 3 comments

Comments

@alyjan
Copy link

alyjan commented Oct 12, 2023

When will custom image markers be supported through the Marker component? I see it's planned per the documentation but no timeline is given. Currently any value passed into image prop is ignored

  <Marker 
      coordinate={coordinate} 
      onPress={onPress} 
      image={image} />
@IgorErmakov
Copy link

Got the same issue. Really missing this property :(
We're writing polygon my markers and it looks a bit ugly with classic ones.

@omardlhz
Copy link

You can add a custom marker by adding a View or whatever you want inside the <Marker> tag. For example:

<Marker coordinate={{ latitude: 35.2156095, longitude: -80.8570135 }}>
    <img src="https://cataas.com/cat" width={50} height={50} />
</Marker>

Will generate:

image

@IgorErmakov
Copy link

IgorErmakov commented Apr 25, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants