Skip Navigation

[Resolved] Maps is not Applying Filters (Correctly)

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 Minesh 1 year, 3 months ago.

Assisted by: Minesh.

Author
Posts
#2634145

Ed

Map is not applying filters correctly. Goes to Africa.

hidden link

If you type (and choose) any city in Texas or type a company name, the map updates to show the western coast of Africa.

#2634213

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

There was a known issue with distance search and that is fixed.

I would like to inform you that we released hotfix version for Toolset Maps 2.1.3. Can you please update Toolset Maps plugin to latest release and try to resolve your issue.

You can download the latest Maps plugin from the following link:
- https://toolset.com/download/toolset-maps/#changelog

Please let us know if your issue does not fix with the latest Toolset maps plugin then it could be possibally the different issue.

#2634389

Ed

You got me all excited, thinking that was going to fix the problem.

It didn't.

Still goes to Africa on any City (distance) search.

#2634393

Minesh
Supporter

Languages: English (English )

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

Are you searching with address or using text search, whatever search you are using please share all details that should help me to see the issue.

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

#2634401

Minesh
Supporter

Languages: English (English )

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

Can you be specific with what location I should try and see the issue?

#2634403

Ed

I don't believe it matters.

Houston
Austin
San Angelo
San Antonio...

#2634411

Minesh
Supporter

Languages: English (English )

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

Can you please check now.

You have added the query filter as given under where the compare field is setup as: compare_field="full-address"

[wpv-control-distance distance_unit_url_param="toolset_maps_distance_unit" 
	  distance_radius_url_param="toolset_maps_distance_radius" distance_center_url_param="toolset_maps_distance_center" compare_field="full-address" default_unit="mi" default_distance="25"] 

When I check the marker field, it was setup as follows where marker_id was setup as marker_id='marker-1':

[wpv-map-marker map_id='map-0' marker_id='marker-[wpv-post-id]' marker_icon='<em><u>hidden link</u></em>' marker_field='full_physical_address']
<a class="member-item" href="[wpv-post-url format="raw"]" title="[wpv-post-title] - [wpv-post-field name='city'] [wpv-post-field name='state']"><h3 class="membername">[wpv-post-title]</h3>
<span class="citystate">[wpv-post-field name='city'] [wpv-post-field name='state']</a>
[/wpv-map-marker]

There were two issues:
- If you see compare_field it was setup as compare_field="full-address" with query filter and with marker marker_field='full_physical_address'. I've deleted your existing distance filter and try to add it again so it is now populated with correct compare_field as given under within your view's "Search and Pagination" section:

[wpv-control-distance distance_unit_url_param="toolset_maps_distance_unit" distance_radius_url_param="toolset_maps_distance_radius" distance_center_url_param="toolset_maps_distance_center" compare_field="full_physical_address" default_distance="25" default_unit="mi"]

- we need marker_id unique so I've changed the marker shortcode as given under marker_id='marker-[wpv-post-id]':

[wpv-map-marker map_id='map-0' marker_id='marker-[wpv-post-id]' marker_icon='<em><u>hidden link</u></em>' marker_field='full_physical_address']
<a class="member-item" href="[wpv-post-url format="raw"]" title="[wpv-post-title] - [wpv-post-field name='city'] [wpv-post-field name='state']"><h3 class="membername">[wpv-post-title]</h3>
<span class="citystate">[wpv-post-field name='city'] [wpv-post-field name='state']</a>
[/wpv-map-marker]
 

Can you please confirm it works as expected now.

#2634413

Ed

Thanks, Minesh! It appears to be working, now.