šŸ“ New Plugin: Beautiful Maps - Mapbox

Hey Alex -

Thanks! Iā€™ll look into the hover state today. I was actually thinking of providing another custom marker on hover but this might workā€¦ will let you know.

In regards to address of the location with the centre lat/long - yes! It would be great to extract that address to be able to add that to a state of some sort.

Best,
Zico

1 Like

Thanks @zico.gaeffke! Leave the location of the centre of the map with me and Iā€™ll see what I can do over the next few days.

1 Like

Hi @zico.gaeffke, Iā€™ve been looking into the centre lat/long and itā€™s trickier than I thought to implement so canā€™t promise when/if Iā€™ll be able to get to it.

However, for now you should be able to use the Mapbox Geocoding API to add this functionality yourself fairly easily via the API Connector:

Itā€™s the reverse geocoding youā€™ll want to use :slight_smile:

Thanks for looking into this @alexcooney5, much appreciated!

1 Like

No problem @rlowe012! :slight_smile:

Hi @alexcooney5 another one for you. Is it possible to have dynamic labels containing values that a are visible on the map without clicking, like airbnb?

Screenshot 2024-08-21 124109

Hi @rlowe012, this isnā€™t currently possible Iā€™m afraid.

However, let me check it out over the next few days and see how much would be involved in adding it :slight_smile:

Will report back once Iā€™ve had a proper chance to look into it.

1 Like

New feature: save users maps drawings - August-24 update
Just released a new version (version 1.17.0) of the Beautiful Maps - Mapbox plugin with a pretty significant new feature. You can now allow users to save down the coordinates of any polygons/lines/points they draw on a map and then re-load them at a later stage.

Drawing on a map:

2024-08-23 10.59.51

Loading a drawing

2024-08-23 11.23.08

Database structure:

Workflow action to save GeoJSON from Mapā€™s exposed states to database

Iā€™m first saving down the GeoJSON, and then setting a custom state on the Map element to be equal to those coordinates I created. This means I can create new coordinates for a fresh map and update the current mapā€™s coordinates if the user has already started drawing on the map:

How the GeoJSON looks in the database

You can see all of this in the ā€˜Drawing on a map and saving coordinatesā€™ section of the demo app.

New action
Load GeoJSON

New event
Mapbox Map is Drawn

New exposed states on Mapbox Map element
GeoJSON - Polygon
GeoJSON - Line
GeoJSON - Point

Any questions just let me know :slight_smile:

1 Like

Great job, Alex. Thank you so much. I will check it out in the next days.
Regards
Stefano

1 Like

Set min/max zoom levels and access current zoom level - August-24 updates
Just released a new version (1.18.0) of the Beautiful Maps - Mapbox plugin. You can now set the min/max zoom levels using two new (optional) fields on the Mapbox Map element:

You can also now access the current zoom level of the map using the ā€˜Zoom Levelā€™ exposed state on the Mapbox Map element.

You can see the ā€˜Loading a Mapā€™ section of the pluginā€™s demo app for examples of these new features.

Any questions just let me know :slight_smile:

2 Likes

Incredibly helpful! Thank you!

1 Like

No problem @jolenowski!

Add markers with prices (like Airbnb) - August-24 update
Just released a new version of the Beautiful Maps - Mapbox plugin that allows you to add markers that shows a custom price:

You can read the ā€˜Adding Markers with a Custom Priceā€™ section of the pluginā€™s demo app or check out the sample map I put together here for full details on how to use this feature.

Any questions just let me know :slight_smile:

2 Likes

@rlowe012 this may be of interest :slight_smile:

1 Like

Does the show pricing element work stil. Cant find it on your plugin demo page

Hi @rupertwallace, you can see it at this link :slight_smile:

Awesome! thanks!

Hello, I found the following example (Doh! Making a Simpsons-inspired map with expressions | by Mapbox | maps for developers ) that I cannot adapt to my app. Do you think this is possible using your plugin and if so could you help me. I would like the size of the icons to be proportional to the value of the SIZE section of my HOUSE table, and for the color of the countries to be different depending on the value of the COLOR section. The difficulty I encounter is that the data in the HOUSE table varies depending on user actions. It is therefore a question of making the link with the HOUSE Table and the MapBox map. I donā€™t know if I was very clear, but any help would be appreciated. Thanks in advance

Hi @milanic2b, thanks for your interest in our plugin.

Iā€™ll take a look at this tomorrow and get back to you with an update.

Hi again @milanic2b, Iā€™m afraid itā€™s not possible to dynamically set the size of the markers using my Beautiful Maps - Mapbox plugin. Sorry about that!

It may be something I look to add in the future, but I canā€™t promise when or if that will happen.