Leafy Maps 🌿 (new free plugin)

Yes, you can just use the action ā€œAdd markerā€ as many times as you wish. If you want to do it dynamically, you can pair this plugin with the plugin called ā€œList Shifterā€, which allows you to do a client side loop (run a certain workflow X times). Let me know if you want more details!

1 Like

Great! I ended up doing just that and all good now! Thank you! I see you’ve put a lot of effort into the plugin :+1:

1 Like

One more question for you Vini! when you want to add a marker to the map, are there alternative ways, for example, like using maps ā€œclicked locationā€ or ā€œmap’s centre locationā€ to get the coordinates in order to place a marker, does that make sense?

I was just wondering if it were possible to place a marker on the map at any place I wanted to if I zoomed in, clicked a position for example and that’s where the marker gets placed, whether it always be the centre of the map or at a specific place which was clicked.

1 Like

Great idea. That’s not currently implemented, but can be in the future.

2 Likes

Oh yes please! that would be a great addition to have if it’s possible Vini. I don’t think there’s any map plugin that exists which allows for this type of functionality, as I think the nearest you get to that is having an overlay icon in the centre of the google extended map and using the map’s centre coordinates to drop the marker.

I’d quite happily contribute a donation for your efforts. I’m sure I wouldn’t be the only one grateful for it :slight_smile:

This plugin has massive potential… getting a workflow fired too when a map marker is clicked would also be awesome.

1 Like

Hey Vini, so do you think you would/could make the required changes to the plugin so that we could do the following 2 things…

  1. Get map’s centre location OR clicked location (coordinates) somehow.
  2. Enable a workflow to be run when a map marker is clicked.

Hello again! Yes, these are possible to be implemented. (:

1 Like

Hi I’m having an issue.

Capture

I’m really not sure what I’m doing wrong. I’ve been messing with this for a couple hours now and cant figure it out.

Now I’ve stopped getting that error but without fail it always only creates a route in a place in europe. its always the same place and never changes.

Can you share with me the workflow? Specifically the action that prepares the request and the action that draws it.

Edit: Or a view link to your app via a private message.

Nonetheless, I suspect that you’re using the example data input on the actions instead of your actual data, because that route in Europe was the one I used in testing and in the example. I can check if that’s the case.

Hi Vini,

In the support docs for the Routing API data being returned, as shown in the following link:

Do you know what metrics the time and length are measured in? is it minutes for (time) and (kilometres) for length do you think?

I gotta figure out a kilometres to miles conversion, format the times correctly and ideally get mph instead of kph for speed.

:slight_smile:

Great question. I haven’t really worked with that yet, but you seem to be correct about the units.
In case you’re curious, that Stadia API is a Valhalla server, and you can see Valhalla’s documentation here: https://valhalla.readthedocs.io/

Yeh I had spotted that, I’ll have a good read through the docs and other sources on the internet and eventually figure it out. Thanks very much

Just reading through some of the comments on this page and came across this.

That comment field for a marker supports HTML, so you get some control over it.
You could enter something like this:

<a href="https://www.computerhope.com/jargon/m/example.mp3" target="_blank">Click to play me!</a>

If you don’t want it to open up in new tab then change it to this:
<a href="https://www.computerhope.com/jargon/m/example.mp3">Click to play me!</a>

If you want a nice HTML5 audio control to appear, then do this!

<audio controls width="100" height="100">
<source src="https://d1490khl9dq1ow.cloudfront.net/sfx/mp3preview/crowd-cheer-clap-scream_fJkt-OV_.mp3" type="audio/mp3">
</audio>

For everything else, Google is your friend!

1 Like

Great finding! We could show a video at the marker popup then, or even an entire website!

1 Like

Hi Vini. Is there a way to automatically zoom out the map (i am using Mapbox) to see all other markers centered around the user’s current position? thanks a lot.

You can set the zoom level via workflow action to any dynamic number you want. Then you can pan the map to any position of the map, for example the user’s current position. You can grab the user’s current position via locate action.

Would that be what you want to create?

Thanks a lot Vini. I was looking for something like : Set Desired Zoom level to show the 5 nearest markers around the user’s current position. How would you do that? thanks a lot.

1 Like

Yes! :smile:
Draw a transparent line using those 5 markers then use the action ā€œZoom to lineā€, see if it does what you seek :wink:

In order to draw that line, you’ll have to create two lists, one with the markers’ latitudes and the other with their longitudes, feed that to the line action, then at the line’s color picker slide the transparency level to make it invisible (100%).

1 Like

thank you @vini_brito !

Could I build something like Hoodmaps with this? Basically overlaying community driven data on a map.