I've run into an issue. I'm building a store-finder view (you'll find it on the /stockists/ page. I'll provide access to the site below). Currently, we have 300+ stockists (though this is definitely growing).
Problem is, if I try to display all the stockists on the map at the same time, the page times out and I end up with a 500 server error.
So, I've enabled pagination to display 10 of the stockists at a time (see screenshot) just to test it out, which works fine in theory- but as you'll see, it grabs them via some strange order which means I see stockists around the world- not just the ten nearest me. I read in the Maps 1.5 docs that "When displaying a list of content, including posts, users, and taxonomy terms, you can now order them by distance from a specific location or the current user’s geolocation." Is that not applicable to the Map? Only list views?
Is there perhaps a way to not load the map until a user enters their address, and either a) display all stockists within 100km of them or b) load the nearest 10 stockists?
Or perhaps another method I may not have considered?
I'll provide a login so you can see how it's set up etc. The view is called " View Stockists - Map"