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
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?
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?
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]
Yes, I would appreciate some assistance with my last comment or should I start a new thread?
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.
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.