• Resolved luor

    (@luor)


    Hi. We have your plugin. It stopped working properly.
    We hava a blank gray div and info from the console:
    InvalidValueError: setCenter: not a LatLng or LatLngLiteral with finite coordinates: in property lat: NaN is not an accepted value

    Our shortcode in template file:

    [pw_map address=”ExampleCity” width=”100%” height=”250px” zoom=”9″ key=”our_api_key_from_google”]

    Where is the problem. Thank you in advance!!!!

    • This topic was modified 3 years, 5 months ago by luor.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Alan Fuller

    (@alanfuller)

    I tested on my API key and it works fine.

    The browser console on your website is showing

    InvalidValueError: setCenter: not a LatLng or LatLngLiteral with finite coordinates: in property lat: NaN is not an accepted value

    Which is an indication the stored address look up is somehow corrupted.

    You could try clearing the cache by using another address.

    Maps are cached using the WordPress Transients API, which allows for very simple database-based caching.

    Each time you display a map, the address specified is used to generate a unique md5 hash, which is used for the cache identifier. This means that if you change the address used for your map, the cache will be refreshed.

    • This reply was modified 3 years, 5 months ago by Alan Fuller.
    • This reply was modified 3 years, 5 months ago by Alan Fuller.
    Thread Starter luor

    (@luor)

    Hi, thank you for reply.

    any adress doesn’t work.

    I cleared all cache
    I removed all transient
    I tested as hardcode and always I have this warning…

    Plugin Author Alan Fuller

    (@alanfuller)

    Have you checked you API key has Geoencoding still enabled?

    https://developers.google.com/maps/documentation/geocoding/get-api-key

    Have you tried with a different API key?

    Have you tried standard trouble shooting? e.g switch to default theme, disable all plugins.

    The Troubleshooting plugin ca help with that as it allows you to do so without impacting other visitors.

    https://en-gb.www.ads-software.com/plugins/health-check/

    Plugin Author Alan Fuller

    (@alanfuller)

    Hi how did you get on?

    Plugin Author Alan Fuller

    (@alanfuller)

    I see the map is working on your site. I assume it was your API key.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘The map is invisible’ is closed to new replies.