Map loading with lots of listings

This topic contains 12 replies, has 4 voices, and was last updated by  siparker 8 years, 5 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #61052

    siparker
    Buyer
    Post count: 114

    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.

    #61054

    Guust
    Moderator
    Post count: 29970

    1. 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/#map

    3. Only GD Booster. If you have trouble with GD Booster we can always have a look.

    4. Faster server?

    #61061

    siparker
    Buyer
    Post count: 114

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

    #61073

    siparker
    Buyer
    Post count: 114

    ok 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

    #61077

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    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

    #61078

    Paolo
    Site Admin
    Post count: 31206

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

    #61096

    siparker
    Buyer
    Post count: 114

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

    #61099

    siparker
    Buyer
    Post count: 114

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

    #61100

    Paolo
    Site Admin
    Post count: 31206

    Hi,
    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

    #61111

    siparker
    Buyer
    Post count: 114
    This reply has been marked as private.
    #61182

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hello,

    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

    #61183

    siparker
    Buyer
    Post count: 114

    ah sorry i thought i had got all of these. i must have missed a csv.

    Ill grab it now and do that

    #61186

    siparker
    Buyer
    Post count: 114

    turns 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

Viewing 13 posts - 1 through 13 (of 13 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket