Skip Navigation

[Resolved] How to add the Geometry library from Google Map Javascript API

This support ticket is created 6 years, 4 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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 6 replies, has 3 voices.

Last updated by guillaumeR-2 6 years, 4 months ago.

Assisted by: Beda.

Author
Posts
#1105589

Hello,

I must use function from the Google map api Geometry library.

I see Toolset Map call the Google Map API, but only the "place" library.

How can I add the request for the google "geometry" library to have this :
<script src="hidden link">
</script>

Regards

#1106429

Hello,

There isn't such a built-in feature within Toolset maps plugin, the "library" parameter is defined in the source codes of Toolset maps plugin, file toolset-\toolset-maps\includes\common-functions.php, line 762:

'libraries'	=> 'places',

If you agree, we can take it as a feature request, our developers will evaluate it.

#1108212

Thank you.

I already do this modification in the 'common-functions.php' file. But the next time Toolset Map will be updated, I will loose this modification...

Is there another solution to do that ? May be in the "functions.php" file of my theme ?

Regards

#1109126

No, as I mentioned above, there isn't existed solution to do that.
If you agree, we can take it as a feature request, our developers will evaluate it.

#1112202

OK, I'm agree to add this in the feature request road map.

Thanks, Guillaume

#1112765

I have taken the request and put it online here to be upvoted by users.

However, I have a concern about this which is the Google API data limitation, I am not sure how this can or will impact the free limits.

I can also not promise an implementation, as that is decided by the Developers.
At most I could think of a filter applied to the current Maps function so you can alter it on your own.

You can follow up (and upvote) here:
https://toolset.com/feature-request/allow-to-customize-the-libraries-of-toolset-maps/
https://toolset.com/feature-request/?wpv_post_search=maps&wpv_view_count=686737 > Allow to customize the libraries of Toolset Maps

Thanks!

#1112774

Great, waiting for this implementation