Skip Navigation

[Resolved] Adding popups to map marker

This support ticket is created 4 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 6 replies, has 2 voices.

Last updated by andyB-12 4 years, 5 months ago.

Assisted by: Shane.

Author
Posts
#1753437

Hello the following ticket is not done but I am not able to reopen it, therefore I opened a new one

https://toolset.com/forums/topic/show-marker-for-each-view-result-on-a-map/

I was able to setup the markers, but now it would be great to add a popup when clicking on the marker that shows the exact address and a link to calculate a route to that destination with google maps, ideally in a new tab

#1753971

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screenshot 2020-08-24 at 1.23.45 PM.png

Hi Andy,

Thank you for getting in touch.

When adding your marker specifications as Nigel instructed in your previous ticket, you will also see a section for the Popup content. See Screenshot

When you click this you will get a popup where you can actually define what information you want to appear in the popup.

The problem now unless you are using custom coding there is no way to generate a link that when user's click it, it provides directional information.

Thanks,
Shane

#1758193

Hi Shane,

thanks for you reply. I found the section where to add content to the popup, but as I am not working with the Blocks Editor, but with Views it looks like this: hidden link

And I have no clue of the shortcodes, that I could add. Is there a list?

As mentioned I would like to add the Post title, address and url (address+url are custom fields created with toolset).

Thanks!

#1758219

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Andy,

Ok thank you for the clarity.

So what you would add here is the shortcodes below.

[wpv-post-title] //this generates the post title

[types field='address-slug'][/types] //You will need to replace address-slug with the correct slug for the address field

[types field='my-url'][/types]  //You will need to replace my-url with the correct slug for the url field
 

Please let me know if this helps.
Thanks,
Shane

#1758231

Amazing. It works! Is there maybe a solution to create a link for each popup that sends the visitor to Google Maps in a new tab with the address of that popup as target for a route?

#1758357

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Andy,

Unfortunately no we do not have a solution for this one.

Thanks,
Shane

#1759089

My issue is resolved now. Thank you!