Skip Navigation

[Waiting for user confirmation] markers on a map

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 19 replies, has 1 voice.

Last updated by Minesh 19 hours, 12 minutes ago.

Assisted by: Minesh.

Author
Posts
#2848695

on this page here hidden link on the right i have 2 tabs club location and clubs trial locations .
the clubs location is dispaying its marker on the map , but i can not get the markers for the clubs trial locations to display on the map . i can get the location titles to display but not the markers on the maps

in elementor the page is here hidden link

for clubs location i use shortcode to get the content template ,which calls my view . and the same for trials location . can you advise what im doing wrong here ?> many thanks

#2848703

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I need to check how you added the map and how you configured the map markers.

*** 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.

#2848731

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

When I checked the Elementor template you shared:
- hidden link

I see there is two tabs and with the first tab "Club Location" it shows the following content template:
- [wpv-post-body view_template="content-template-to-pull-club-location-data"]

When I checked the above content template:
- hidden link

I see the following code added to above content template:

[wpv-map-marker map_id='map-14' marker_id='marker-[wpv-post-id]' marker_icon='//gundog.world/wp-content/uploads/2020/08/2.png' marker_field='wpcf-toolmap'][/wpv-map-marker][wpv-view name='show-venue-on-club-map-1']

- I ee a map marker and view shortcode. I'm not sure why map marker shortcode is added without map. You may check this furter.

Regarding the second tab "Clubs Trial Locations", I review and find that the followingn content template is displays with this tab.
- hidden link

When I check the above content template, I see there is a shortcode added to it:

[related_venues display="Title"/]

- The above is not a Toolset shortcode and you will have to investigate furter where the above shortcode resides and find why its not displaying the map.

#2848795

thankyou minesh ,
i have sorted the map id and marker out for the club location tab. the markers for venues can go onto this map also i will get rid of the 2nd tab for locations

a bit of clarification . that was a custom plugin made to link clubs to venues for this purpose for my original site . the plugin is called "Club Venues" . it literally gets the id's of related venues and clubs and vice versa.

you can see it in action here hidden link if you select spaniel and open the map you will see the club markers on the map , if you click a marker it will open a tooltip and give the id of the club related to the marker , if you then select view past and future trial locations it will list the related venues to that club .

the view for this is here hidden link

maybe a bit easier would be to show you the old site , if you go here hidden link (this example is showing clubs related to a venue as markers on the map) but is functioning . login for front end of this site you can use toolset1 and password v@@FwYv4m# you must login to see the page . if you want to login as admin to see toolset debug for the page please send me a private form .

i literally cannot figure out how to use the shortcode within the toolset marker setup.

thankyou once again

#2848848

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - you can add any shortcode normally. Please chech the marker shortcode Doc:
- https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/#wpv-map-marker

Again when I checked you are not using normal shortcode but custom shortcode that should looks like the custom plugin you build and you will have to trace this or get help from any pro designer.

#2849249

a bit of clarification ...
all the marker fields are toolset address fields . all the plugin does is get the related ids between club< > location (bi-directional)
on my old setup it was as so in the single_organizer.php file

<?php $ids = do_shortcode('[related_venues]');?>
<?php echo do_shortcode("[wpv-view name='show-venue-on-club-map-1' ids='" . $ids . "']");?>
you can view that page using the login details provided in my last post and visiting here

very easy, very simple and all functioing . the problem now is that im using elementor i dont know how to incorporate
<?php $ids = do_shortcode('[related_venues]');?> i need this so i can run
[wpv-view name='show-venue-on-club-map-1' ids='" . $ids . "'] from within elementor as i no longer have a single-organiser.php to duplicate the previuous get ids

in elementor if i use [wpv-view name='show-venue-on-club-map-1'] i get all the markers for all venues . i literally just need to run the php somewhere to do the shortcode for the ids of related venues .

as i have it now i have

in elementor i am running the shortcode [wpv-post-body view_template="duplicate-content-template-to-pull-venue-location-data-1"] here
hidden link

the contentent template is running [related_venues][wpv-view name="show-venue-on-club-map"] here
hidden link

the view is located here hidden link

, as you will see it is set to filter by "ids" , it cannot filter by ids because i dont know where to run the php
<?php $ids = do_shortcode('[related_venues]');?> or how to set the views marker to get the ids....

if in elementor i use [wpv-post-body view_template="duplicate-content-template-to-pull-venue-location-data-1"]
i get all locations on the map . (which is correct as no ids passed )

if i use [wpv-post-body view_template='duplicate-content-template-to-pull-venue-location-data-1' ids='" . $ids . "']
i get no locations (again correct as no ids )

so as you see this 1 line i think is killing my setup in the new elementor setup as it isnt being run anywhere
<?php $ids = do_shortcode('[related_venues]');?>
how can i use this line now ? its the key to my issue?

i hope this explains this better , waqas helped me set this up a number of years ago but i cant find the support tickets for this..
many thnaks again
martin

#2849363

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

You can pass the direct shortcode to "ids" attirbute as given under:

[wpv-view name='show-venue-on-club-map-1' ids='[related_venues]']

But you will need to register the shortcode name related_venues at:
=> Toolset => Settings => Front-end Content tab => Third-party shortcode arguments section

If you can check I already register the shortcode name related_venues:
=> hidden link

What if you pass the shortcode as your view attributes value to any of the shortcode where required:

For example:

[wpv-view name='your-view-slug' ids='[related_venues]']
#2849366

do i need the content template in elementor or can i go straight to the view ?
i was going to use [wpv-view name='show-venue-on-club-map' ids='[related_venues]'] as "show venue on club map" is the original view . now im unsure i even need the content template to pass the view mentioned ...
(i think the view show venue of club map 1 is just a duplicate and uses the same as the original )
thankyou
martin

#2849367

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Yes, you can ue the content template and then within the content template add the view's shortcode as given under:

 [wpv-view name='your-view-slug' ids='[related_venues]']
#2849369

ok thx ,
so in elementor i now use shortcode [wpv-post-body view_template="duplicate-content-template-to-pull-venue-location-data-1"] to grab the content template

this content template is now using [wpv-view name='show-venue-on-club-map' ids='[related_venues]'] to grab the view .

this view is the original working view unchanged.

the out come on the front end is it now seems to be working correctly for the most part it just seems to give 2 markers for the same venue! example here hidden link should be 6 markers i have 6 markers that show 2 hidden link

ps i have run a cleanup of the old elementor auto saves etc to speed the page up a bit hopefully.......
thankyou again martin

#2849376

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Glad to know that now its working.

I'm not sue what you mean. Do you mean on the "Clubs Trial Locations" tab you want to display six markers but its showing two only? I see there are two markers shown two-three times. It seems you are using marker clustering.

#2849488

well if i go here hidden link and goto clubs trial locations , there are several blue markers with (2) , when you click on any blue marker it then zooms in , how ever it now reduces to 1 marker , how ever when you click on that marker it seperates into 2 and the 2 are the same location ..... really i just wanted the map zoomed to a ratio as big as possible but showing all markers with no cluster or spider stuff. im nit sure how to accomplish that,and a bit scared to mess after finaly getting this working after so long!!

thankyou again

#2849498

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

If there are multiple markers added on the same location then you will have to use the spiderfy option otherwise it will only show one marker even thought there are multiple markers added on the map.

What you have crrently have currently is the best solution.

#2849556

ok thankyou , if a club has used a location more than once , say 6 times , is there a way to limit it only showing 1 instead of 6 ?

and i have just one small issue that i cant seem to resolve for this story .
i have set it up for the reverse , ie venues showing clubs . i can get all the related clubs showing , but for some strange reason i cannot just get the venue itself to show on its map . i have tried all sort but just wont do it .
example
hidden link

the left tab location , it is simple map 1 one marker set by toolset custom field " all venues on map" im unsure if its template assignment in the venus post back end , like here (top right) content assined by ......
hidden link

once i have this marker showing i can close this down and move on , thankyou very much
martin

#2849587

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

ok thankyou , if a club has used a location more than once , say 6 times , is there a way to limit it only showing 1 instead of 6 ?
==>
You can disable the spiderfy option and that will show only one marker when multiple addresses available.