Skip Navigation

[Resolved] Unable to show multiple map markers on archive page

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

Problem:

The issue here is that the user's markers are not showing up on the map.

Solution:

In this user's case it was the wrong field that was specified for the marker.

Please ensure that when you're adding a marker that the field that is used is a field that contains an address.

This support ticket is created 6 years, 4 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 6 replies, has 2 voices.

Last updated by Sasank 6 years, 4 months ago.

Assisted by: Shane.

Author
Posts
#953912

I have a company listing in which each can have multiple locations (repeatable field group). I created a view for the location repeatable field group to loop and return the map markers and using that view in archive page in company post loop. But, the markers are not getting rendered on the map.

hidden link

Loop item in Company map markers

[wpv-map-marker map_id='company-archive-map' marker_id='marker-[wpv-post-id]' marker_field='branch-address']
  <h5>
    [types field='company-logo' title='[wpv-post-title item="$current_page"]' alt='[wpv-post-title item="$current_page"] Logo' size='custom' height='50px' resize='proportional' item='$current_page'][/types]
    [wpv-post-link item='$current_page']
  </h5>
  <i class="fa fa-map-marker"></i> [types field='branch-address'][/types]
[/wpv-map-marker]

Loop item in Companies Archive

<div class="company">
  <a href="[wpv-post-url]" class="company-logo">
    [types field='company-logo' title='%%TITLE%%' alt='%%ALT%%' align='center' size='thumbnail' resize='proportional'][/types]
  </a>
  <h3>[wpv-post-link]</h3>
  [wpv-view name="company-map-markers"]
</div>

Companies Archive Output

[wpv-map-render map_id="company-archive-map" map_height="360" scrollwheel="off" cluster="on" spiderfy="on"]

<h3>Filters</h3>
<hr>
[wpv-filter-meta-html]
<hr>
[wpv-layout-meta-html]
#954504

Shane
Supporter

Languages: English (English )

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

Hi Sasan,

Thank you for contacting our support forum.

Would you mind providing me with access to the site so that I can check on this for you ?

The private fields will be enabled for your next response.

Thanks,
Shane

#954695

Shane
Supporter

Languages: English (English )

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

Hi Sasan,

I took a look at this for you and it should be working now.

Thanks,
Shane

#954700

Shane, It seems the problum was with the slug used. Got it solved. Thanks for your time.

#954706

Shane,

Another prob, markers did showup but for all marker popups its us same name and logo instead of using the right company details. Like if you see location of Smart3Dme, its showing logo of think3D and title also think3D. I am using

[wpv-post-link item='$current_page']

but still its not giving the proper result.

Also, the city filter is not working.

#955634

Shane
Supporter

Languages: English (English )

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

Hi Sasan,

I see the issue that you are talking about.

However I would recommend opening a new ticket for this one so that we can handle it there as the original issue of this ticket is resolved.

Thanks,
Shane

#955640

Ok doing that.
Just didnt want to have multiple tickets open for the same page.