Map loading with lots of listings
This topic contains 12 replies, has 4 voices, and was last updated by siparker 9 years, 3 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
November 21, 2015 at 1:29 pm #61052
Hi
I know this has been discussed quite a bit but i am having issues still.
I ahve approx 4k listings across two countries at the moment. (this is likely to go up when i have the data for other countries)
Is there a way to cache an initial map which shows a whole country ?
Or any way to cache maps for specific views.
i ahve multilocation installed and if i filter by just United states it has 3819 listings in that one country. the m,ap never loads.
similarly the map for the homepage doesnt load (assume this is because its trying to load all markers even though i ahev set London to be the default location.)
several queries i guess.
1. if i have a default location set why does it still load everything on the homepage? I also dont seem to be able to load the lister page map on the homepage instead.
2. if there are too many markers to load can i limit this to a initial amoutn in some way? these guys http://heybars.co.uk/ have some sort of filter added to limit the initial amount of markers shown. is there a way to implement this?
3. If not is there a way to cache initial maps with markers so that they load quickly? i havent loaded the gdbooster plugin yet as last time i tried it i couldnt access the site afterwards. Will this help and how much?
4. Any other ideas? I dont really have a way to make any subcategories so cant filter any further down initially. any other way to make fewer initial results to increase the speed?Thanks in advance for your help.
November 21, 2015 at 1:46 pm #610541. Did you set GD > Multilocations > location settings tab > Home Page Results >Show default location results on home page (First time only, if geodirectory home page is your site home page and user comes to home page).
2. GD > design > map > Select category to untick by default on map
https://wpgeodirectory.com/docs/core-design/#map3. Only GD Booster. If you have trouble with GD Booster we can always have a look.
4. Faster server?
November 21, 2015 at 2:48 pm #610611 yep thats ticked
2. as i mentioned above there is 1 category and not really any way to filter this down.
3 when i load it it breaks the site theme . its an ongoing issue as its a complex theme (which i like but its costing me such a lot of time)
4 have tried it on a faster server not much difference. its on a shared dedi now with maybe 30 other sites none of which ahve heavy traffic and it has no resource limitations.I foudn a few bits of info RE speeding up map load speeds.
http://nickjohnson.com/b/google-maps-v3-how-to-quickly-add-many-markers
this specificalyl was interesting. any way to implement this into GD ? it seems to laod a lot of markers with no noticeable effort at all.
November 21, 2015 at 5:04 pm #61073ok down to some totally random behaviour now
If i choose all areas (homepage /listings/ ) then it loads after a fe seconds with all 4700 listings
If i filter country = UK its also fine
If i filter country = US then it never loads
Is it caching the map out put already? without gdbooster? does it have some sort of caching for built maps?
as if i just have the whole map loaded and then zoom in it seems to be fine. but filtering by just US it wont load. which doesnt make any sense
November 21, 2015 at 5:25 pm #61077Hi,
for question n1, have you tried visiting the home page from an anonymous tab?
Why don’t use the marker cluster add-on?
Please provide a link of your website and we will have a look.
Thanks
November 21, 2015 at 5:28 pm #61078p.s. that tutorial is very old and outdated.
The link that he’s stating as slow, it’s as fast the like he says its the faster one.
Thanks
November 21, 2015 at 6:57 pm #61096homepage
http://parlour.thetattooforum.com/listings/US Filter
http://parlour.thetattooforum.com/listings/united-states/UK Filter
http://parlour.thetattooforum.com/listings/united-kingdom/Marker cluster is on.
That is the wierd bit. sometimes it loads sometimes not
I see that is a very old page now.
How is it they are loading thousands of markers in seconds then? seems to work quickly i thought versus GD currently? but i assume that kind of stuff has already been looked at though.
November 21, 2015 at 7:04 pm #61099slightly more odd also
if i load the UK screen then open another tab and change location toi US
then move the map on the UK screen it says nothign foundf (as its now just filtering US ones.) and if i move the map over they are showing fine can zoom in out no problems.only seems to error when i want to show that US map initially.
November 21, 2015 at 7:05 pm #61100Hi,
there is an error on your US location page only.TypeError: bounds is null http://parlour.thetattooforum.com/wp-content/plugins/geodirectory/geodirectory-functions/map-functions/js/map.min.js?ver=4.3.1 Line 1
Please provide admin details and we will find what is causing it.
Thanks
November 21, 2015 at 7:27 pm #61111This reply has been marked as private.November 23, 2015 at 10:55 am #61182Hello,
Some of your listings have malformed GPS positions for example
-93.88095,street":"7
You can try exporting your listings to CSV to find them and fix them, this will solve your problem.
Thanks,
Stiofan
November 23, 2015 at 10:57 am #61183ah sorry i thought i had got all of these. i must have missed a csv.
Ill grab it now and do that
November 23, 2015 at 11:04 am #61186turns out there was just one
Must have been in a odd file when i combines them.
Works now.
Thanks and ill keep my eye out for that kind of thing in the future
Can i ask why you think it might have been that the map for the whole world loaded (even though that should have included that malformed longitude)
Also i mentioned a site above http://www.heybars.co.uk that have a nice way of triggering just enough listings at a time to allow you to choose an area and zoom in. is it possible to limit the returned responses in some way to try and replicate this functionality as when i get up to a few more countries its possibly going to struggle to show them all.
Thanks again for spotting the error
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket