Skip Navigation

[Resolved] Map markers not displaying

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

Last updated by Christian Cox 7 years ago.

Assisted by: Christian Cox.

Author
Posts
#590236
Screen Shot 2017-11-16 at 3.28.21 PM.png

I am trying to display a multimarker map from custom post type

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

I expected to see: map with 4 location markers within the UK

Instead, I got: lots of blue sea

#590331

Hi, I edited this View and unchecked "Don't include current page in query result", and I believe it's working as expected now. Can you confirm?

#590445
Screen Shot 2017-11-17 at 7.46.45 AM.png

Thanks!!

However I add this link to display the post title in the popup:
[wpv-map-marker map_id="map-locations" marker_id="marker-[wpv-post-id]" marker_title="[wpv-post-title]" marker_field="wpcf-c-m-downton-location"] [/wpv-map-marker]

and I just get the white box with X

what am I missing?

#590580

Hi,

Update: I would also like to know how to achieve the following: I have set the markers to cluster and when I click on the cluster I want to display a popup window with a list of the post title links related to each cluster?

this is my loop output:

[wpv-layout-start]
[wpv-items-found]
[wpv-map-render map_id="map-locations" fitbounds="off" general_zoom="7" single_zoom="7" general_center_lat="52.402861" general_center_lon="-1.546502" cluster="on" cluster_click_zoom="off" draggable="off" scrollwheel="off" double_click_zoom="off" map_type_control="off" cluster_min_size="1" map_height="500px"]
<!-- wpv-loop-start -->
<wpv-loop>
[wpv-map-marker map_id="map-locations" marker_id="marker-[wpv-post-id]" marker_title="[wpv-post-title]" marker_field="wpcf-c-m-downton-location"] [/wpv-map-marker]
</wpv-loop>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]
[wpml-string context="wpv-views"]No items found[/wpml-string]
[/wpv-no-items-found]
[wpv-layout-end]

#590735

Yes, I would appreciate some assistance with my last comment or should I start a new thread?

#590971

Hello, I'm unable to use the login token you provided earlier to see what's going on here. I will reactivate private reply fields here so you can provide a new token or login credentials.

#591235
#591310

Okay I see. The marker_title field is displayed when you hover over a map marker. The content you want to display in the pop-up should be placed in between the map marker shortcodes:

[wpv-map-marker map_id="map-locations" marker_id="marker-[wpv-post-id]" marker_title="[wpv-post-title]" marker_field="wpcf-c-m-downton-location"]
<strong>Your title: </strong>
<p>Your contents</p>
[/wpv-map-marker]

Update: I would also like to know how to achieve the following: I have set the markers to cluster and when I click on the cluster I want to display a popup window with a list of the post title links related to each cluster?
By design, clicking a cluster icon on a Google Map triggers a zoom effect into the area represented by the cluster icon. Overriding this would require custom code, and falls outside the scope of what we can provide here in the support forums. If it's not necessary to allow your Users to zoom in past the cluster level in this map to see individual locations, you could create a different map where each address marker represents a cluster of locations, and include the relevant links in the content of each "cluster" location marker. You could supply your own custom image for each marker so it doesn't look exactly like a map marker. It's not as automated as a standard cluster marker, but it will achieve the effect you want, if I understand correctly.