Skip Navigation

[Resolved] Maps

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

Last updated by Shane 5 years, 1 month ago.

Assisted by: Shane.

Author
Posts
#1602465
6.png
5.png
4.png
3.png
2.png
1.png

Greetings from Poland,
Please help me to set my search results on Google map.

I use Elementor and Toolset plugins.
My website is a shop with eye glasses and an optical salon search engine.
I created a custom post type: Optical Salon (att #1) and I have added the Adress field in Optical Salon (att #2)

I used Elementor to create archives of optical salon search results. Each of the showrooms has an address field with a map (att #3).
Please note that the auto-complete address option from Google maps does not work (att #4).

I created View and added a map and marker field in the loop editor (att #5).
In the loop output pool I also added a map with a marker (att#6).

Please check where I made the mistake because the search results are not displayed on the map.

Regards,
Robert

#1603195

Shane
Supporter

Languages: English (English )

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

Hi Rober,

Thank you for getting in touch.

Based on your screenshot especially (att#4) I can see that this could be an issue with the API Key.

However i cannot be 100% sure given that i'm not able to translate the error from an image. What you can do is to provide me with admin access to the website so that I can have a look at the site in more detail to see what exactly is happening here.

I've enabled the private fields for your next response.

Also please send me a link to the page where the map is being displayed on the frontend.

Thanks,
Shane

#1604471

Shane
Supporter

Languages: English (English )

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

917979-Screen_Shot_2018_06_26_at_10.05.35_AM.png

Hi Robert,

Thank you for your response.

As suspected it is an Issue with the API key. It could be that some of the API that are required are not activated.

Could you go to your Google Dashboard and ensure that the Places API, Geocoding API and Map Javascript API are all enabled. See Screenshot.

Once you've verified this please let me know.

Thanks,
Shane

#1610403
Toolset#1.png
Toolset#2.png
Toolset#3.png
Toolset#4.png
Toolset#5.png
Toolset#6.png
Toolset#7.png

Thank you for your help.

#1
I have improved the API Key and map search results work.
I would like to know how to display all results on one map only (att #2)?

#2
The search engine custom fields 'address' does not seem to work. I attach screenshots with the settings, with an example for the city of Gdańsk. Where did I make a mistake?

Regards,
Robert

#1611371

Shane
Supporter

Languages: English (English )

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

Screenshot 2020-05-04 at 4.03.40 PM.png

Hi Robert,

#1
I have improved the API Key and map search results work.
I would like to know how to display all results on one map only (att #2)?

If you want your map to be on this side then you will need to do some column manipulation.

There is an output editor section on your View, see screenshot.

The [wpv-filter-meta-html] shortcode represents any filters that are on your site and the [wpv-layout-meta-html] controls the loop output. So this will produce the results.

You can add your map shortcode in this section and then use the bootstrap column to setup a 2 column layout for the your output.


<div class="row">
	<div class="col-md-6">[wpv-filter-meta-html]</div>
	<div class="col-md-6">[wpv-layout-meta-html]</div>
</div>

In this example i've used the filter output and the results output but you can also use the map shortcode here as well.

Thanks,
Shane