Skip Navigation

[Resolved] maps markers not caching or showing

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

Problem:
Toolset Maps is not showing any markers.
It displays only a blue ocean part.

Solution:
This will help.
Follow the steps carefully:
https://toolset.com/forums/topic/maps-markers-not-caching-or-showing/#post-434956

This support ticket is created 7 years, 7 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 3 replies, has 2 voices.

Last updated by adamP 7 years, 7 months ago.

Assisted by: Beda.

Author
Posts
#434902
map-data.JPG

I have had maps on some of my pages for weeks/months. I haven't had any problems until I just updated one of the addresses of the posts. It then quit showing the marker. I then created a map on the full list of posts. As I would update an address, it would disappear from the map. I then went to the location cache and cleared them all, now I don't have anything on the map.

As I update posts, or add new ones, no new addresses are being put into the cache. I have the same problem on my production site as well as a testing site. I am posting a snapshot of my Google API dashboard, where it looks like it's constant errors on the Geocode API.

Am I missing something?

Here's a page with a map.
hidden link

Here is the code, used in a content template. You can see the address below the map, is the same being used to create the marker. As mentioned, this has worked without problems, until I updated the address.

 
[wpv-map-render map_id='map-1' marker_icon="[wpv-bloginfo show='url']/wp-content/plugins/toolset-maps/resources/images/markers/Home.png"][wpv-map-marker map_id='map-1' id="$unit" marker_id='marker-1' marker_field='wpcf-unit-location'][/wpv-map-marker]
      </div>
      <h4 class="text-center"><i class="fa fa-map-o" aria-hidden="true"></i> [types field='unit-location' id="$unit"][/types]</h4>

Any help would be great. Thanks

#434908

I've tried deactivating all plugins, and also tried the old version of Maps.. still nothing.
I've upgraded back to maps 1.2.

I think this must be stemming from the toolset upgrade on ~8/24, as I don't think I've really worked with the maps since then.

#434956

Google now reuqires an API key that is exactly set up as elaborated here:
https://toolset.com/documentation/user-guides/display-on-google-maps/ > Creating a Google Maps API Key

Most likely, this is a issue with your Google API key, and we can not really help with this as Google Itself is not able to provide a proper Document on how to add a proper Google API key.

Specially when it comes to referrer restrictions, which is what I believe to be the problem here.

1. Create an Address Field with Types Plugin
2. Add Addresses to your Posts
3. Insert the Map and markers to a View or your Post (directly, do not use Layouts, for debug purposes)
4. call the View on a page or view your Post.

==> Very important is to know, that Google did change its API rules.

==> You now NEED an API key and here is described how that API must be set up:
https://toolset.com/documentation/user-guides/display-on-google-maps > Creating a Google Maps API Key

==> I would "overkill" it a bit and delete the current API, so to create a new one.

==> Also, wildcard URL restricting of the API, or any other form of restriction of the API, is tricky.
Please try first without restrictions, in case it still does not work.

If then all this did not solve the problem, please check if the issue also persist with a WordPress Default Theme and NO Plugins BUT the Toolset Plugins?

If the issue still persists, please let me know and I will get a Internal Google API Key, and test it on your site to see if that works.

#435053

I changed the restrictions to "none", and that worked.

I had tried www. site .com, and *. site .com for http referrer, but neither worked. Am I missing something with the restrictions?

Thanks for the help. I know google says to protect the key with restrictions, but is it really a concern that someone may use the key/quota?

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.