*

Jarosvet

  • *
  • 3 posts
Can I improve the map for index page?
« on: November 13, 2016, 08:53:46 PM »
Hi! My problem is that I can't display all listings on the map on index page because 100,000 listings makes the page load too slowly. But I want to offer better navigation for my visitors.

Is there any way to make it function this way?

- When the map on index page loaded first time it will display only coordinates of countris that contains ads and the numder of ads it contains
- When visitor choose the country then it will load regions from that country, then cities
- And if choosen city contains only ads without coordinates, then display the link to search page

So, is it posible to configure it this way?

Thank you

*

MB Themes

Re: Can I improve the map for index page?
« Reply #1 on: November 13, 2016, 09:23:13 PM »
@Jarosvet
You should use cluster on map that groups listing in similar location.
However all listings must exist on background inside map, that can produce large HTML file, therefore I do not recommend showing such amount of listing, but show just part of them, i.e. last 10 000.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Jarosvet

  • *
  • 3 posts
Re: Can I improve the map for index page?
« Reply #2 on: November 13, 2016, 09:56:10 PM »
@Jarosvet
You should use cluster on map that groups listing in similar location.
However all listings must exist on background inside map, that can produce large HTML file, therefore I do not recommend showing such amount of listing, but show just part of them, i.e. last 10 000.


Sorry for my English, it seems we didn't understand each other

I'm talking about replacing osc_has_items()  to osc_list_country() which gets list of countries with items, so we have on the background only countries, saving the huge amount of resources
And when user choose country then to use osc_list_region() for this country and also to have only this regions array on background and so on

*

MB Themes

Re: Can I improve the map for index page?
« Reply #3 on: November 13, 2016, 10:01:17 PM »
@Jarosvet
You have full plugin code, you can modify it in way you need, if you know that.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots