I am trying to:
show a single location in map
Link to a page where the issue can be seen:
hidden link
I expected to see:
the place in the code :
[wpv-map-render map_id="map-0"][/wpv-map-render][wpv-map-marker map_id='map-0' marker_id='marker-4' address='Ben Yehuda Street 12, Jerusalem, Israel'][/wpv-map-marker][wpv-map-marker map_id='map-0' marker_id='marker-5' address='Ha-Rav Uzi'el Street, Jerusalem, Israel'][/wpv-map-marker]
Instead, I got:
Hi, please go to Toolset > Settings > Maps and click "Check API". Let me know what you see here.
Also, the second address has an apostrophe that seems to break the shortcode. I removed the apostrophe and the marker is working with the following code. Two markers are shown:
[wpv-map-render map_id="map-0"][/wpv-map-render][wpv-map-marker map_id='map-0' marker_id='marker-4' address='Ben Yehuda Street 12, Jerusalem, Israel'][/wpv-map-marker][wpv-map-marker map_id='map-0' marker_id='marker-5' address='Ha-Rav Uziel Street, Jerusalem, Israel'][/wpv-map-marker]
i see a
REQUEST_DENIED - API keys with referer restrictions cannot be used with this API.
But its very strange, as i use this api in houzez theme - and it works perfect with no restrictions...
also added your code and nothing happens...
i removed url restrictions and than it works....
I see google write to use ips and not url for preventing this error...
do you know about this?
Why this happens only with toolset maps?
What am i supposed to put in the second key???
You should create two API keys in the Google console. One key should be restricted. You will use the restricted key on the front-end of your site. The second key should NOT be restricted. It will not be used on the front-end of the site.
https://toolset.com/documentation/user-guides/display-on-google-maps/creating-a-google-maps-api-key/#problems-with-displaying-markers-on-google-maps