Skip Navigation

[Resolved] Markers not displaying on View map

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

Problem:

The issue here is that the user's map was not displaying any markers.

Solution:

For this user the issue was that they added their map marker shortcode outside of the view loop so there wasn't any information being provided to the map for it to display.

This support ticket is created 6 years, 2 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 9 replies, has 2 voices.

Last updated by stefanieN 6 years, 2 months ago.

Assisted by: Shane.

Author
Posts
#1136740

I am trying to:
Display a series of markers (based on custom filed "address" in custom post type entries) on a map in a View. No marker is displaying.

Link to a page where the issue can be seen:
hidden link

I expected to see:
All the markers corresponding to my entries, which are displaying below the map in the search results.

Instead, I got:
Nothing on the map. However, I don't think it's a problem with the API. I checked it in the Toolset settings and it says "Google API seems to be configured properly." Moreover the field address is displaying correctly (on maps) on my single pages. See here for example:
hidden link

#1136896

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Stefanie,

Thank you for contacting our support forum.

Could you check to ensure that the markers are targeting the correct Map ID ?

If this is so then could you allow me to have admin access to the site so that I can check on this further for you ?

Thanks,
Shane

#1137637

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Stefanie,

I was able to see the issue.

The problem was that the marker was added to the wrong section so it wasn't getting any information for the map to display.

I went ahead and removed it and added it to the content template section for the view.

Thanks,
Shane

#1138046

Hi Shane,

That's awesome. I misunderstood where the code for the markers was supposed to go.
It's working now and I managed to configure the popups too. My only question is why are not all the markers displaying at once on the map (there's only 6 visible when I load the page while I have 31 entries). The funny thing is that if you make a search by country (say Guatemala, for which a marker doesn't appear at first even if I zoom in), then the marker shows up on the map...

Thank for your help!
Stefanie

#1138240

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Stefanie,

The reason why there are only 6 markers is because you only add the country's name as an address. So all the posts with the same country name will use the same marker.

Right now your map only displays the markers for the items that are currently on the page being viewed.

Thanks,
Shane

#1138269

Oh I see. Is there a way I can display all the markers and not only the ones corresponding to the first 10 results displayed on the page?

#1138383

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Stefanie,

This is possible if you create a view that contains the map and the markers then add this view to your search.

The only problem is that the map won't be filtered by the view.

Please let me know if this is ok for you.

Thanks,
Shane

#1141292

Hi Shane,

It took me a little while to understand what you meant but I played with the map for a while and managed to create a separate view that now displays all my markers independently from the search.

Thanks so much for your help!
Stefanie

#1141569

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Stefanie,

Awesome, i'm happy i was able to assist you with this.

If there are no further questions on this then you can proceed to mark this ticket as resolved 🙂

Thanks,
Shane

#1142089

My issue is resolved now. Thank you!