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 Markers with Profile Pictures in Flutter using Mapbox (Latest Version Compatibility) issue #784

Open
sandipkarkar opened this issue Nov 23, 2024 · 1 comment

Comments

@sandipkarkar
Copy link

sandipkarkar commented Nov 23, 2024

Hi Mapbox Team,

I am currently working on a Flutter project using the latest version of mapbox_gl for Flutter. My goal is to display custom markers that include user profile pictures. I would like to use a URL pointing to the user's profile picture as the marker icon. In previous versions, I was able to achieve this using the addImage method and setting a GeoJSON source with custom icons.

However, with the recent updates, my current implementation doesn’t seem to work properly. Specifically, I’m facing issues with:

Displaying profile pictures as custom markers using URLs.
Adding text (like usernames) alongside the marker.
Managing marker interactivity (taps/clicks) in the latest version.

I would appreciate guidance on:

The recommended approach for setting up custom markers with images in the current version.
How to dynamically update marker content if profile pictures or associated data change.
Any working examples or updated documentation that cover custom marker functionality with the latest mapbox_gl version in Flutter.

@UsamaEjaz0
Copy link

Hi @sandipkarkar did you find a solution?

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

2 participants