Map View Not Displaying more than 1000 listings

Hello,

In this Sharetribe help article, it says “Right now for performance reasons, especially on mobile, the map view displays up to 2000 listings maximum. The 2000 most recent listings are visible.”

Our marketplace has 2093 open listings, however, only 1000 listings get shown on the map. I would like to show the maximum 2000 listings. Is there a setting or variable somewhere to change maximum number of listings to display on the map?

My developer has changed the “map_listings_limit” variable in the “config.defaults.yml” file from the default 150 to 3000 but it still only shows 1000 listings on the map.

Thanks,
Ken

1 Like

Hey Ken,

this is the right variable/value to update. A few things that can be wrong:

  • are you sure that that variable has been edited in your hosting / server / deploy, and not only on your local machine or settings? If you use Heroku, for example, you should configure that variable there. Good to double check that it has been updated at the right “live” place!
  • is there a location for all listings? Maybe some listings don’t have any location (in which case they don’t appear on the map at all).

And one more thing to clarify: the 2000 limit is something that is valid for the hosted version of Sharetribe Go. But that depends on your own infrastructure: you could put a way higher number if you’d like to, just make sure to monitor your server load and general performance to find the best spot between user experience and performance :slight_smile:

Hi Thomas,

Thanks for your response, I appreciate it. For your reference the site is www.millinerymarket.com

For dot point 1, I will check with my developer.

For dot point 2, yes most (if not all) of our listings have a location. I know this is not the issue as when I filter listings by “new” there are 1000 pins on the map (there’s actually 1374 new listings but only 1000 are shown) and when I filter by “used” there are 689 pins on the map.

I wonder if Google Maps limits the number of markers to 1000 as indicated in this page. Do you know of any example hosted sites that have more than 1000 markers shown on the map?

On our homepage grid view, the number of listings is also limited to 1000. When you scroll down it says “Loading more content” and then displays the next 24 listings, but eventually it only displays the most recent 1000 listings. I suspect it is related to the 1000 markers on map issue, if I can show 2000 in map view I’m hoping it will show 2000 in grid view. Is there a separate setting / variable somewhere that limits the maximum number of listings shown on the grid view?

Thanks,
Ken

Hey Ken,

Got it, keep us posted about 1.

Good to hear that, about 2, most listings have locations.

However now you mentioned that you have 1000 pins on the map but this is not what I experience when browsing your website. In Go, listings are “grouped” when they are close (based on the zoom level). When grouped, one single pin shows the number of listing in that “larger” area.

For example, on your homepage at https://www.millinerymarket.com/?category=millinery&view=map, you have only four pins that are about 29+74+207+690 = 1000 listings.

In Go, it shouldn’t happen that more than 1000 pins are displayed altogether, because of that automatic grouping.

Does it clarify things about that pin thingy?

About the grid view and scroll: no, there isn’t any such limit. It should display them all, there is no such limit or variable. I’m not sure where that 1000 value comes from: maybe from your own customization or limits? Just a thought. Are you aware of such possibility in your own code?

Keep us posted!

Hi Thomas,

Sorry I meant the map view is limited to 1000 listings, not 1000 pins. You are right due to clustering of nearby listings there is less than 1000 pins.

I’m not aware of any customisations we have made that limits the number of listings to 1000. I will check with my developer for item 1 and hopefully that fixes the issue.

Thanks,
Ken