Skip Navigation

[Resolved] Markers not displaying on the map

This support ticket is created 5 years, 7 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 6 replies, has 2 voices.

Last updated by philippeB-3 5 years, 7 months ago.

Assisted by: Minesh.

Author
Posts
#1283053

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

#1283145

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]
#1283277

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. :-/

#1283679

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.

#1283835

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 ?

#1283847

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.

#1283861

My issue is resolved now. Thank you!