Skip Navigation

[Resolved] Cannot show Marker on maps

This support ticket is created 6 years, 3 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 3 replies, has 2 voices.

Last updated by Nigel 6 years, 3 months ago.

Assisted by: Nigel.

Author
Posts
#1100427

I am trying to: Insert a Map with once one marker and once several markes. none of them is showing even after following all instructions here
https://toolset.com/documentation/user-guides/display-on-google-maps/ and here
https://toolset.com/documentation/user-guides/display-on-google-maps/displaying-markers-on-google-maps/

Link to a page where the issue can be seen:
hidden link (Page: Forellensee Finder — Entwurf / Login needed - Data below)
hidden link

I expected to see: Markers on the maps. (Firstly only one but even that one didn't appears.

Instead, I got: a clean map of africa.

#1100538

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Christoph

Markers not displaying where expected are almost always due to problems with the Google API key, and typically because of URL referrer restrictions added.

If you go to Toolset > Settings > Maps, where you enter the API key you'll see a button to test the key. If unsuccessful that is why your markers fail to load.

You should first check your API key and the URL referrer restrictions. If these appear to be correct and the markers still do not display, you may need to add a second, unrestricted, key as described here: https://toolset.com/documentation/user-guides/display-on-google-maps/creating-a-google-maps-api-key/#problems-with-displaying-markers-on-google-maps

#1100645

Hey Nigel,

thanks a lot.
I checked with the Maps API and now that works.

Here it is displayed correct:
hidden link

But here not:
hidden link

Could you please have a look to the search of the single items, because I do not find the issue ... I would appriciate your help a lot.

Thanks in advance,
Chris

#1101352

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Chris

The search page is currently being edited (by you) so I can't take a proper look, but it appears to me that on that page you have a row where you insert the search form on the left and in the same row insert the map (id 6) on the right.

Then on the row below on the right you insert the View results.

The View in question (Forellensee-Suche) inserts the map (id 6) in the Loop Editor, and also inserts the marker (but not inside the wpv-loop tags where it belongs), and then in the Output Editor you have again added the same map (id 6), although the marker is wrongly included within the wpv-map-render shortcode.

So you are adding the same map 3 times on the same page (but they all have the same id, which is therefore failing).

I suggest you create a simple test page which you don't design with any page builder and simply insert the whole View.

Edit the View so that you remove the map and marker from the final output section, and you move the marker shortcode within the wpv-loop tags.

Check that test page. You should see the results of the View listed (I don't see any on your current page), as well as the map with a marker.

Once you have that working you should be able to port it to your desired page.