📍 New Plugin: Beautiful Maps - Mapbox

Hi Alex - me again! I wanted to check if you have any ETA on the “Change Icon for Clicked Marker” event (no pressure :smiley: )

And then secondly, I would love a state to know which Marker IDs are in the viewport of the map. I would like to build something like an “Airbnb-style” map and then filter based on what the users sees. I know that the Zeroqode plugin has that state, but I just like your Plugin better :smiley:

Cheers,
Adrian

Hey @a.villabruna - thanks for checking in! :slight_smile:

I did start this and made a good bit of progress, but there’s quite a few edge cases that I need to make sure the action works with. I can’t guarantee a specific ETA, but hopefully I’ll get it out sometime over the next 1-2 months.

You can figure out which markers are visible on the map (and get their associated marker IDs) by using the 4 exposed states outlined in the below post:

You basically need to do a search for all locations where the lng/lats fall within the bounds given by these custom states. Let me know if that makes sense or if I can clarify further :slight_smile:

2 Likes

Thanks for the update, looking forward! I got the search within bounds to work as well

1 Like

Beautiful. Thanks for confirming @a.villabruna and will keep you posted on progress with the ‘Change Icon for Clicked Marker’ update!

It might be interesting for others to know how I implemented this. There is some complexity due to the crossing of international date lines. See below screenshots with the scenario where the Map bounds are crossing datelines (with the advanced filter), and where it doesn’t cross datelines.


2 Likes

This is great @a.villabruna! Thank you for sharing :slight_smile:

‘Remove Single Marker’ action - November-24 update
Just released a new version of the Beautiful Maps - Mapbox plugin that lets you remove a single marker from the map:

2024-11-17 12.00.40

You can do this via the new ‘Remove Single Marker’ action.

Any questions just let me know :slight_smile:

Hi, thank you @alexcooney5 for this plugin
I am facing an issue with the directions functionality. I need the starting point (A) to remain fixed on the user’s location on the map, while allowing the user to control the endpoint (B) and set it on the marker of their choice. Is it possible to make this feature work as described

Hi @franaccess.ksa, thanks for using my Mapbox plugin and welcome to the Bubble forum :slight_smile:

I’m afraid my plugin doesn’t currently support this functionality. Sorry about that.

I may look to add it in the future, but I can’t promise when or if I’ll be able to do that.

1 Like

Thank you so much for your response and for your great work on this plugin! I truly appreciate your engagement and efforts.

I sincerely hope you can consider adding this functionality in the future as it would be a fantastic upgrade to the map and take it to the next level. I was planning to use this plugin for a large project since it has all the features I need. Unfortunately, due to the current limitation with dynamic marker interaction, I’m unable to proceed with it.

It would mean a lot if you could add this feature, as it would make a huge difference for projects like mine. Thank you once again for your amazing work, and I’m hopeful you’ll be able to implement this in the future!

1 Like

Thank you for the feedback @franaccess.ksa - I appreciate it would be a useful feature for your project.

I’ve made a note of your request and will let you know if I decide to add it to the plugin.

PS - you can also keep up to date with our plugin product releases by signing up for our monthly newsletter. It’s where we announce all product releases/updates :slight_smile:

1 Like

I’ve wanted to add a ‘Selected State’ functionality to the Beautiful Maps - Mapbox plugin for a while now, but was trickier than anticipated.

Had a bit of a breakthrough today and realised it should be possible to implement this without any actual plugin update!

2025-01-03 16.56.12

I’ll do a full write-up of it next week, but you can check out the editor for the above example here if you’re interested in the meantime :slight_smile:

Still have a bit of work to do on what happens when users double-click icons, but it’s coming together!

cc @a.villabruna @zico.gaeffke

Hello,

Thank you for this great plugin :slight_smile:

Befor going through all the great content, i assum it is possible to add markers for differents adresse plus the current position of the user ?

Thanks in advance for your answer

1 Like

Hi @farouk.zemmouri, thanks for the kind words!

Yep, you can absolutely add markers for different addresses.

For the current position of the user you can either:

  • Add a marker to represent the user (using the ‘Add Single Marker’ action) - this will not update automatically if the user changes location
  • Or use the ‘Add Geolocation’ action on page load to trigger a beacon that will update with the current user’s position - see below
    2025-01-06 14.53.15

Any other questions just let me know :slight_smile:

Great!

I’ve successfully used the Mapbox plugin, and it works perfectly. However, when I wrap the app using Natively BDK, the map fails to load. Can you help me find a solution?

Hi @yash.modi, I saw you also posted this question on a thread related to another Mapbox plugin.

Just to confirm, is it my Beautiful Maps - Mapbox plugin you’re using?

Quite a few people who use this plugin have successfully used it in wrapped apps, so I’m surprised you’re having issues with it (if it is indeed my plugin :slight_smile:)