Skip Navigation

[Resolved] Google Maps API retired version

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

Problem:
Map not displaying after importing address field values using Ultimate CSV importer PRO plugin

Solution:
As you can see with "Ultimate CSV importer PRO" Docs

Scroll down at bottom of the page and you will see for "Address" field the required value is string NOT lat-lon values.

You can find proposed solution, in this case, with the following reply:
https://toolset.com/forums/topic/google-maps-api-retired-version/page/2/#post-902534

Relevant Documentation:
=> https://toolset.com/documentation/user-guides/how/-to-import-content-into-wordpress-using-csv/import-csv-ultimate-csv-importer-plugin/#table

This support ticket is created 6 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.

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 19 replies, has 2 voices.

Last updated by tipinoncomuni 6 years, 5 months ago.

Assisted by: Minesh.

Author
Posts
#902628

Gulp! My formula was working for 2,3 items!
I'm really sorry, map invisibility and google message helped me to make a really big mistake.

But ... Something is not clear. You wrote:
<<Then I checked your address field and I see your address field is saving only lat and long values.>>

What you mean?
I imported items data from a csv file using "Ultimate CSV importer PRO".
The column used for import data to the field "localizzazione" (a Types "Address" field) had strings like this: {44.23525,11.25235}

You mean that Ultimate Importer filled the field with a different format than those edited in the toolset backend?
This worried me about manual record editing: will the values become different and will no longer be valid for the formula used? Is there another better way to define coords from csv?

In any case ... 1 million thanks for the actual solution, and excuse me for my wrong idea.

#902640

NOOOOO!
Thanks to your simplified code i fond where the problem is: the map_height parameter!
map_height="100%"
but also
map_height="90%" or map_height="50%" ...

if you just add this parameter to your code, the page will be blank exactly like mine

Please note: if you have only 2-3 items the map is working well, with more (how many?) ... blank page.
I don't know if it depends on google or toolset but the problem exist.

#902749

Minesh
Supporter

Languages: English (English )

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

Well - the original issue with this ticket was you were using wrong marker shortcode to display the map. I already shared solution for that here and its working:
=> https://toolset.com/forums/topic/google-maps-api-retired-version/page/2/#post-902534

But ... Something is not clear. You wrote:
<<Then I checked your address field and I see your address field is saving only lat and long values.>>
==> Well - Yes, as you confirmed that your imported data has lat,lon values like this {44.23525,11.25235}, it does not contain the address string like "New York". So you need to display the map using lat-lon values and that I already did and shared the solution with you and its working.

Please check following post and you will see the map address field is having lat-lon values - not address string:
=> hidden link

But - as each address will have lat-lon values, you do not need to worry as even after you update the map field with string value, it will still have lat-lon values.

What you mean?
I imported items data from a csv file using "Ultimate CSV importer PRO".
The column used for import data to the field "localizzazione" (a Types "Address" field) had strings like this: {44.23525,11.25235}
==> That string is imported is lat-lon values and that is we are using to display the map.

As you can see with "Ultimate CSV importer PRO" Doc:
=> https://toolset.com/documentation/user-guides/how-to-import-content-into-wordpress-using-csv/import-csv-ultimate-csv-importer-plugin/#table

Scroll down at bottom of the page and you will see for "Address" field the required value is string NOT lat-lon values.

Regarding the map_height issue with % (100% or 50%) value - I see Map still rendered on page (if you can check page source you will notice that map is available) but due to some style conflict its not displaying. This needs another ticket. Please use map_height="450px" for now with map_height as workaround for now.

Please kindly open a new ticket for this map_height not working with % issue.

#903591

Minesh
Supporter

Languages: English (English )

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

Could you please close this ticket. 🙂

#903619

Sure, thanks for your help