Skip Navigation

[Resolved] Create a button “Open in Google Maps”

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the user wanted to create an Open in Google maps button that when clicked takes the user to the Google maps website with their location.

Solution:

This is possible, however you would've already need to get the url from the maps website and add it as a link to the page. This will intern link you to the exact location on the map with the marker already filled in.

This support ticket is created 5 years, 8 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 3 replies, has 2 voices.

Last updated by romanB-3 5 years, 8 months ago.

Assisted by: Shane.

Author
Posts
#1243699

Hello,
I have a map filled by a CPT with coordinates. It all works great but I'd like to add a button in order to open the address into Google Maps website.
How my I achieve this ?
Thank you.

#1243810

Shane
Supporter

Languages: English (English )

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

Hi Roman,

Thank you for contacting our support forum.

I actually took a look at this for you, however the issue is that with google maps searches after the search is made additional parameters are added in the url so we wouldn't get a marker to the exact point generated but once its linked to the general area, the user would need to click the search again for the marker to show up.

Thanks,
Shane

#1244220

Shane
Supporter

Languages: English (English )

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

Hi Roman,

There is another way we can do this.

However you will need to get the actual link of the location when searched in Google and enter it into a custom field that will hold the link.

Finally you can construct your button from this link. Let me know what you think of this.

An example of the link you will need would be.
hidden link

So this would need to be stored in a field.

Thanks,
shane

#1244256

Thank you for your answer ; I understand it's not possible to achieve what I want with a large number of addresses.