I am trying to:
Add multiple markers on my mao
Link to a page where the issue can be seen:
hidden link
I expected to see:
Markers on the map displaying adresses of my bars
Instead, I got:
Only the bar located in Lyon...
Here's my loop
[wpv-layout-start]
[wpv-items-found]
[wpv-map-render map_id="map-4" map_height="auto" cluster="on" style_json="//dev2.monsitetranquille.fr/wp-content/plugins/toolset-maps/resources/json/Standard.json"][/wpv-map-render]
<!-- wpv-loop-start -->
<table width="100%" class="wpv-loop js-wpv-loop barsloops">
<wpv-loop wrap="3" pad="true">
[wpv-map-marker map_id='map-4' marker_id='marker-5' marker_title='[wpv-post-title]' marker_field='wpcf-adresse']<strong>[wpv-post-title]</strong>
[types field='adresse'][/types]
<strong><em><a href="[wpv-post-url]">En savoir plus</a></em></strong>
[/wpv-map-marker]
[wpv-item index=1]
<tr>
<td>
[wpv-post-body view_template="loop-item-in-privatiser"]
</td>
[wpv-item index=other]
<td>
[wpv-post-body view_template="loop-item-in-privatiser"]
</td>
[wpv-item index=3]
<td>
[wpv-post-body view_template="loop-item-in-privatiser"]
</td>
</tr>
[wpv-item index=pad]
<td></td>
[wpv-item index=pad-last]
<td></td>
</tr>
</wpv-loop>
</table>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-layout-end]
The address field is displayed here => hidden link
Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
Hello. Thank you for contacting the Toolset support.
Can you please try to replace the following line of code which display the map marker:
<wpv-loop wrap="3" pad="true">
[wpv-map-marker map_id='map-4' marker_id='marker-5' marker_title='[wpv-post-title]' marker_field='wpcf-adresse']<strong>[wpv-post-title]</strong>
[types field='adresse'][/types]
<strong><em><a href="[wpv-post-url]">En savoir plus</a></em></strong>
[/wpv-map-marker]
With the following code where we change the marker_id as marker_id='marker-[wpv-post-id]'
[wpv-map-marker map_id='map-4' marker_id='marker-[wpv-post-id]' marker_title='[wpv-post-title]' marker_field='wpcf-adresse']<strong>[wpv-post-title]</strong>
[types field='adresse'][/types]
<strong><em><a href="[wpv-post-url]">En savoir plus</a></em></strong>
[/wpv-map-marker]
Hello @Minesh
Still not displaying. My code looks like this
[wpv-layout-start]
[wpv-items-found]
[wpv-map-render map_id="map-4" map_height="auto" cluster="on" style_json="//dev2.monsitetranquille.fr/wp-content/plugins/toolset-maps/resources/json/Standard.json"][/wpv-map-render]
<!-- wpv-loop-start -->
<table width="100%" class="wpv-loop js-wpv-loop barsloops">
<wpv-loop wrap="3" pad="true">
[wpv-map-marker map_id='map-4' marker_id='marker-[wpv-post-id]' marker_title='[wpv-post-title]' marker_field='wpcf-adresse']<strong>[wpv-post-title]</strong>
[types field='adresse'][/types]
<strong><em><a href="[wpv-post-url]">En savoir plus</a></em></strong>
[/wpv-map-marker]
[wpv-item index=1]
<tr>
<td>
[wpv-post-body view_template="loop-item-in-privatiser"]
</td>
[wpv-item index=other]
<td>
[wpv-post-body view_template="loop-item-in-privatiser"]
</td>
[wpv-item index=3]
<td>
[wpv-post-body view_template="loop-item-in-privatiser"]
</td>
</tr>
[wpv-item index=pad]
<td></td>
[wpv-item index=pad-last]
<td></td>
</tr>
</wpv-loop>
</table>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-layout-end]
FYI I've experienced a weird thing. I used to have several bars displayed but when I updated their adresses they stopped being displayed. :-/
Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
when you say several bars displayed - can you please share screenshot how it used to display?
Can you please share access details and problem URL so I can see whats going wrong with your map view.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Hello @minesh ,
In fact it was due to the API restricted by referent.
How come we can't restrict API !!??
Also is there a way to make the marker bigger when we hover the linked bar ?
Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
In fact it was due to the API restricted by referent.
How come we can't restrict API !!??
=> API key is related to google as they are providing that map service. You should check with them.
Also is there a way to make the marker bigger when we hover the linked bar?
=> There is no native feature available with Toolset. You need to add custom JS code for that.
My issue is resolved now. Thank you!