Skip Navigation

[Resolved] Maps search don’t work no more after update toolset maps

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

Last updated by - 4 days, 7 hours ago.

Assisted by: Minesh.

Author
Posts
#2886329

I was using mapssearch. It worked perfect for my needs (google maps, key 00000000000000000000). Now it's updated and to OpenStreetMap.

I got strange results on search on place. None or bad ones. Or all. Very strange.

#2886334

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Can you please tell me what is exactly not working and share problem URL and admin access details.

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

#2886341

Minesh
Supporter

First of all, I would like to know, what API you want to use?
- Google
- OpenStreetMap

#2886342

now it looks to be switched to OpenSteetmap. If OSM can work it would be best i think

#2886347

Minesh
Supporter

Ok - Yes, I can see with your I see address autocomplete is not displayed.

But actually the address autocomplte works and when I see network tab of browser the request is successfully completed. There seems to be conflict.

Could you please try to resolve your issue by deactivating all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes?
- Do you see any difference with only Toolset plugins active?

#2886349

No Difference. You can log in via /wp-login.php
Site is now in mainatance. Strange thing is also, when i use a nother theme is see the autofill. But when i use Elementor i don't.
But main important thing is the function of correct search.

#2886350

Wait, is seems to work. I come back to you in a minute

#2886351

No, sorry. Still strange behavior. Some inputs work. But others like "kampen" not. Then you get rare results. Before the update it worked fine. Strange.

#2886356

Minesh
Supporter

We found that at Appearance > Customize > Additional CSS there's this rule:

ul#ui-id-1.ui-menu.ui-widget.ui-widget-content.ui-autocomplete.ui-front.toolset-maps-address-autocomplete-ui-menu{
      display:none!important;
}

I just remove that and I can see the autocomplete.

#2886367

Ah, now it works i see. It now needs autofill. At the time i applied that css so that the autofill did not show because there are a lot of foreign results. Thats looks messy.

Is there any way to:

- only show Dutch city's
or
- show only the entered values?
or
- to leave autofill off?

#2886368

This should be it:

add_filter( 'toolset_maps_osm_geocoder_endpoint', 'limit_osm_geocoder_to_netherlands', 10, 1 );

function limit_osm_geocoder_to_netherlands( $default_endpoint ) {
return add_query_arg( 'countrycodes', 'nl', $default_endpoint );
}

Thanks again!