Skip Navigation

[Resolved] Map doesnt show specific adress – works only with corrdinates

This support ticket is created 5 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 5 replies, has 2 voices.

Last updated by Christian Cox 5 years, 5 months ago.

Assisted by: Christian Cox.

Author
Posts
#1302283

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:

#1302441
Screen Shot 2019-07-28 at 3.39.54 PM.png

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]
#1302455

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...

#1302477

i see this problem here:
https://toolset.com/forums/topic/google-maps-api-with-referer-restrictions/
What am i supposed to put in the second key???

#1302481

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?

#1302485

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