Passer la navigation

[Résolu] open street map issues

This support ticket is created Il y a 1 month, 1 week. 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 -

Fuseau horaire du supporter : Asia/Kolkata (GMT+05:30)

Ce sujet contient 12 réponses, a 1 voix.

Dernière mise à jour par Dido Il y a 2 weeks.

Assisté par: Minesh.

Auteur
Publications
#2869402

I use Open Street Map on lien caché but this page is loading very slow.
Sometimes looking for a town, the search failes. For instance when I look for Wintelre.

On the singel post the map is working ok.
lien caché
Wintelre, Eersel, Noord-Brabant, Nederland

What can we do about these problems?

#2869550

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

That is really strange.

Could you please send me debug information that will help us to investigate your issue.
=> https://toolset.com/faq/provide-debug-information-faster-support/

#2869577

Hi Minesh, I provided the information

#2869580

Minesh
Supporter

Based on thedebug informatin you shared - I can see that you are using latest Toolset plugins.

Just incase to make sure there is no plugin/theme conflict:

*** Please make a FULL BACKUP of your database and website.***
Could you please try to resolve your issue by deactivating all third-party plugins as well as switch to 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?
- Are you able to spot any plugin/theme conflict?

If no:

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

#2871327

Hi Minesh,

Are things clear for you?

#2871650

Christopher Amirian
Supporter

Les langues: Anglais (English )

Hi,

This is Christopher taking the ticket.

Looking at your Loop editor, the markers are not coming from this View. You render the map and then call a separate View:

[wpv-map-render map_id="overzicht" map_height="600px"][/wpv-map-render]
[wpv-view name="show-markers-on-map"]

That nested View runs its own query, so it loads its own set of markers on every page load, independent of what the visitor searched for. That is very likely the main cause of the slowness on this page, and it also means the markers do not follow your distance filter.

The correct way to put search results on a map is to add the marker inside the loop of the same View that does the filtering:

- Edit the View and open the Loop editor.
- Place the cursor inside <wpv-loop>, next to your <div class="kader"> output.
- Click the Fields and Views button, and in the Toolset Maps section click Marker. Use map_id="overzicht" so it matches your [wpv-map-render].
- Remove the [wpv-view name="show-markers-on-map"] line.

Then each result in the loop produces its own marker, and only the filtered results are drawn. That is both faster and correct.

For more information:
https://toolset.com/documentation/legacy-features/maps-plugin/how-to-display-custom-search-results-on-a-map/

Thanks.

#2871875

We set it up this way because I want all markers to appear on the map, but with no display below the map.
Only display the search results on the map below the map after filtering. If we load everything at once, the page becomes too slow.

Is there a workaround?

#2871878

Minesh
Supporter

We have improved Toolset Maps plugin for Address cache mechanism to improve load time and I've installed and activated that Toolset Maps hotfix version on your staging site which we suppose to release very soon but I can see indeed it improved the page speed.

You can check your page by refreshing it couple of times.

#2872705

I see the difference, Minesh. This is a great intervention!
How can I copy this to the main website?

#2872706

this problem still remains:

Sometimes looking for a town, the search failes. For instance when I look for Wintelre.

On the singel post the map is working ok.
lien caché
Wintelre, Eersel, Noord-Brabant, Nederland

Les nouveaux fils créés par Minesh et associés à celui-ci sont repris ci-dessous :

https://toolset.com/fr/forums/topic/split-open-street-map-issues-address-search-or-search-by-distance/

#2872991

Minesh
Supporter

As per our support policy, we entertain only one question per ticket. This will help other users searching on the forum.

As the original issue is already address with this ticket you are welcome to mark resovle this ticket.

I've split the ticket with your new queston for address search:
- https://toolset.com/forums/topic/split-open-street-map-issues-address-search-or-search-by-distance/

#2873047

Hi Minesh,

and what about this:

(We have improved Toolset Maps plugin for Address cache mechanism to improve load time and I've installed and activated that Toolset Maps hotfix version on your staging site which we suppose to release very soon but I can see indeed it improved the page speed.

You can check your page by refreshing it couple of times.)

I see the difference, Minesh. This is a great intervention!
How can I copy this to the main website?

#2873085

Minesh
Supporter

Most probably the this issue will be also shipped with the next release but for now there is no ETA on it, I will keep you posted.

You can downlaod the current version from your plugins page:
- lien caché

There is a download link available with the Toolset Maps plugin.

If you plan to use it on your production site:
*** Please make a FULL BACKUP of your database and website.***

#2873126

Thank you