Skip Navigation

[Fixed in next Release] MAP search in view ends up with map coordinates o/o

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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 4 replies, has 2 voices.

Last updated by Nigel 6 months, 3 weeks ago.

Assisted by: Nigel.

Author
Posts
#2697049

Tell us what you are trying to do?
=================================
In a view of about 400 records, I want to be able to search and present the result as a marker on a map.

Custom fields contain the parameters ID, Road number, Place, Latrin2, Gravatten plus some more.

The map with all the record markers works OK.

When using the search functions, the result is a map with coordinates 0/0. No object found.

This has worked before.

Google API is new with no restrictions.

Attaching screenshots.

UPLOAD does not work! Sending a link to Dropbox.

hidden link

Is there any documentation that you are following?
==========================================
MAP instructions from Toolset

Is there a similar example that we can see?

What is the link to your site?
=======================
swedestops.nu

#2697071

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

I looked at your screenshots, but it's not obvious what problem you are describing.

When using search filters, if there are no results the map shows lat=0;lon=0 ?

And you want it to show somewhere else when there are no markers to display?

Or is the problem something else?

#2697226
Serviceplatser Screenshot.JPG
MAP After clearing of all filters.JPG
Before using filters looks OK.JPG
Koden från Archive Page_Page_4.jpeg
Koden från Archive Page_Page_3.jpeg
Koden från Archive Page_Page_2.jpeg
Koden från Archive Page_Page_1.jpeg

Continuation:

I have an Archive page with search function and a map.

At start with all filters cleared, all posts’ markers are shown on the map, about 450.

Searches work well with different search parameters, but the map is not updated in relation to the search result.

When clearing all filters, the map does not return to the appearance from start either.

Attached the page code. Screenshots.

#2697354

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

I've just been testing this on my own local site, with a Map block added to an archive with search filters, and it appears to be working fine when the search is set to update via page refresh after submitting.

But when I re-tested after changing the settings to update via ajax I found the same problem as you describe, the markers are lost.

I am escalating this to our developers.

I'll let you know when we have a solution.

In the meantime I suggest you update the search settings in the custom archive to update via page refresh rather than ajax.

#2707019

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

Just to let you know that there is a patched version of Maps available that includes a fix for this issue, available here: https://toolset.com/errata/map-markers-lost-after-applying-search-filters-on-custom-archive/