Skip Navigation

[Resolved] Google Maps are not displaying

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 9 replies, has 2 voices.

Last updated by Minesh 11 months, 2 weeks ago.

Assisted by: Minesh.

Author
Posts
#2681884

This is a reopen of another ticket. I have correctly setup the Google Maps API keys. This was working for several years on my main site. It stopped working some time ago (I don't know when). I have since created a DEV site and I have the same problem even with almost no plugins.

If you send me a private chat, I can give you credentials to the dev site to check it out.

Thanks,

#2681941

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please share problem URL and admin access details and also make sure that you created unrestricted google map API key and registered.
- https://toolset.com/course-lesson/creating-a-maps-api-key/#entering-the-maps-api-keys

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2682058

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Thank you for sharing admin access details but I can only access the profile page.

Can you please share admin level rights and also share specific problem URL of post where map is not working.

I have set the next reply to private which means only you and I have access to it.

#2682082

Sorry about that. I set you for administrator just now. Let me know how it goes.

#2682259

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I see you are using Full Site Editing theme and that is not yet fully supported by Toolset.

Here is the errata page for that:
- https://toolset.com/errata/toolset-templates-archives-and-dynamic-sources-dont-work-with-fse-themes/

Maybe you can use any of the recommended themes of Toolset:
- https://toolset.com/documentation/recommended-themes/
Or
You can use the 2021 or 2022 theme which should not be the FSE themes.

However- Please check the following doc that shows how Toolset works and it uses the the_content() function to display the post body area that should be replaced by post body, archive or views.
- https://toolset.com/documentation/programmer-reference/theme-support-for-content-templates/

When I enable the content template debug from I found the following function name "render_block_core_post_content" which I registered at content template debug section shown with the above doc.

I can see the map is displayed on frontend:
- hidden link

#2682262

Okay stand by. I didn't properly recreate the issue then. In the PROD environment, I am not using FSE. So let me work on that part and get back to you. Please don't close this ticket yet.

#2682277

Okay try it now. I have one "Listing" with the map view that defaults to Republic of Congo for some reason.

#2682380

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please check now: hidden link

When I visit the content template you created that you use to display the single listing having Map:
- hidden link

I found that you only added the Map shortcode but to display the marker you will have to add the marker shortcode:

[wpv-map-render map_id="map-2"][/wpv-map-render]

[wpv-map-marker map_id='map-2' marker_id='marker-[wpv-post-id]' marker_title='[wpv-post-title]' marker_field='wpcf-address']
[wpv-post-link]
[/wpv-map-marker]

As you can see I've also added the marker shortcode and I can see the map is working as expected.

More info:
- https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/#wpv-map-marker

#2682433
Screenshot 2024-02-08 054506.png

Thanks Minesh. The "add marker" step was what was missing. I also used the block editor and at the bottom is a button to "add marker", which also worked in my PROD site (see attached image). I had no idea what that button was for or when it was added. As I said, the map was working for years. So it must have been some update over time that added this feature and/or broke it. Also, I was unable to find this step in the Toolset Documentation -> Lessons. So perhaps somebody should add that in for future developers.

Thanks for figuring this one out.

#2682439

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I do not see any other reports that marker is missing from their maps otherwise we will be having tons of complains related to that issue.

Glad that I could help and happy to share the solution. You're welcome to mark resolve this ticket.

#2682441

Nevertheless, how would I know to "add marker"? I still don't know the difference between adding a map and adding a marker for a map. I don't know what a marker is. So please check into that documentation for me. 🙂

Thanks.