Skip Navigation

[Resolved] maps api

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

Problem:

Is there a way, so Toolset doesn't force to load the Google map API, but will work using the already loaded other map api ?

Solution:

Toolset Maps plugin loads google map API only when you display some map feature in that page, Maps+ markers or distance filter.

If there are map feature as I mentioned above, it is required to load google map API with Toolset Maps JS file, there isn't such kind of built-in feature to disable it.

Relevant Documentation:

0% of people find this useful.

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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by martinP-13 4 years, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#1680529

my site and theme all ready utilise google maps , on all my pages i now have the following error , is there a way so toolset doesnt force load the api but will work using the allready loaded api ?
the error in console is

"you have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors."

many thnaks

#1681603

Hello,

Toolset Maps plugin loads google map API only when you display some map feature in that page, Maps+ markers or distance filter.
If there are map feature as I mentioned above, it is required to load google map API with Toolset Maps JS file, there isn't such kind of built-in feature to disable it.

So you will need to consider to remove Toolset Maps feature from those specific pages.

#1683069

My issue is resolved now. Thank you!