Services Plugins FAQs

Mapbox Plugin fitbounds functionality

Hello,

I’ve started using the mapbox plugin for a bubble project. I am not finding a way to use mapbox’s fitbound() function. (detailed here: Fit a map to a bounding box | Mapbox GL JS | Mapbox). How can I use this?

As a second question, is it possible to insert bubble elements in as markers? I’m trying to recreate airbnb’s markers as seen in the image.

Best,
Alex

Hi @alexshuseiwada, thanks for reaching out.

Currently, this feature is not included in plugin functionality. As a possible solution, please check the

  • Fly To MapBoxMap action, with the corresponding level of zoom and coordinate of regional center.

I’m afraid that the marker popup doesn’t support such a feature. A possible solution might be to use a separate popup with the following setup:


Still, we’ve added your requests to the plugin roadmap of possible improvements, so the developer team will check how feasible would be to add them in future plugin updates.

If there will be any other questions that I can help with about our plugin, please let me know.

Regards,

Hi Serg, thank you for the reply! Would love any updates you get on when those functionalities are added.

Hi @alexshuseiwada, thanks for your reply.

Once any feedback or result from the developer team is shared, I will let you know :wink:

Regards,