I am trying to make markers show up on a map. I have done this several times, but right now it does not work. I guess I am missing something out.
I have followed https://toolset.com/documentation/user-guides/display-on-google-maps/displaying-markers-on-google-maps/ and some others and I cant find any differences.
Can you find any issues with the code below?
[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
[wpv-map-render map_id="map-1" cluster="on" marker_icon="//garnvik.no/wp-content/plugins/toolset-maps/resources/images/markers/Shop-1.png" cluster_min_size="2" cluster_grid_size="20"]<h3>Vennligst vent mens kartet lastes inn ...</h3>[/wpv-map-render]
<wpv-loop>
[wpv-map-marker map_id="map-1" spiderfy="on" marker_id="marker-[wpv-post-id]" marker_field="wpcf-adresse"]
<strong>[wpv-post-title]</strong><br/>
<small>
[types field='telefonnummer' separator=', '][/types]
[types field='epostadresse'][/types]
[types field='nettside'][/types]
</small>
</wpv-loop>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]
<strong>[wpml-string context="wpv-views"]No items found[/wpml-string]</strong>
[/wpv-no-items-found]
[wpv-layout-end]
Nigel
Supporter
Languages:
English (English )
Spanish (Español )
Timezone:
Europe/London (GMT+00:00)
Hi Tom
From the map that is being drawn it looks very much like a problem with your Google Maps API key.
Either there is a problem with how you have set it up, specifically if you have added URL referrer restrictions, or you have exceeded your API quota.
See https://toolset.com/documentation/user-guides/display-on-google-maps/creating-a-google-maps-api-key/#known-issues
Could you try either removing the URL referrer restrictions (for testing) or add a second un-restricted key (which is not exposed because it is for server-to-server requests).
Let me know if that helps.
Could I also ask you an unrelated question?
We have just begun trialling offering chat support. When you created this thread you should have seen the option to chat immediately with support or to submit the thread as normal, and it seems like you chose to submit as normal.
Do you have any comments?
Hello Nigel. You were right, there was problems with API regarding the restrictions.
About the chat support I did not see the option.