Change Location Button not working properly

This topic contains 10 replies, has 3 voices, and was last updated by  Paolo 7 years, 2 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #366649

    blacspydr
    Buyer
    Post count: 44

    Hello,

    Sorry to keep bothering you but for some reason the change location button isnt working properly. More specifically, when I select a Region or a City, the corresponding locations come up but the map says “No Records Found. Sorry no records were found. Please adjust your search criteria and try again.”

    Also, on an unrelated note, after I use the change location button, the sub-menu for the button moves to be partially off the screen.

    Thanks in advance for your help!

    #366650

    blacspydr
    Buyer
    Post count: 44
    This reply has been marked as private.
    #366659

    Guust
    Moderator
    Post count: 29970

    You were hiding a lot of relevant categories to be hidden from the map at
    GD > Design > Map > HIDE POST TYPE AND CATEGORY ON MAP
    I have un-hidden all of them, please check.

    Thanks

    #366662

    blacspydr
    Buyer
    Post count: 44

    I purposely hid them because it caused the map to zoom out too far (if you have any better ideas for that, I’d love to hear them). Also, how did that affect the map displaying regions that weren’t hidden?

    How about the change location button moving?

    #366663

    Guust
    Moderator
    Post count: 29970

    Because you were also hiding all clinics.
    If you ask all listings in a category to NOT be displayed on the map, they will not.
    The zooming is based on addresses of the listings, not categories.
    I am a bit confused as to what you are trying to achieve, for example why do you have categories named after a state? All listings are already ordered by state because their address.
    If you can explain a bit better with exact links, then I might be able to understand what you are trying to do. Thanks

    #366664

    blacspydr
    Buyer
    Post count: 44

    Each location includes a category for other customization purposes (https://wpgeodirectory.com/support/topic/any-suggestions-on-finding-a-developer-that-can-handle-geodirectory/).

    99% of the people that view this site are in mainland US. My thought was, in order to display the map in a better way, I’d hide the locations from distant islands. That way, by default, the map was zoomed in enough to display the most locations where the users are interested (mainland).

    For example, by default (the way that it currently looks), there are only four clusters but that represent 99% of the population.

    Hope that clarified things a bit.

    #366666

    Guust
    Moderator
    Post count: 29970

    What you are doing is not “hiding the locations from distant islands”, but you are removing all listings in some categories from the map.
    So if you have a category called “Hawaii” and all Hawaiian listings are in that category, and you hide that category, then there are NO listings for any map that includes Hawaii.
    The result will be what you describe: “No Records Found” on the map.

    I added this at GD > Design > Script:

    
    
    ul li#menu-item-gd-location-switcher ul {
        margin: 0 80px 0 -80px;
    }
    #366667

    blacspydr
    Buyer
    Post count: 44

    thanks. do you have any suggestions on how I can display the map to be zoomed in to only the mainland US by default?

    #366671

    Guust
    Moderator
    Post count: 29970

    That is only possible if you turn off auto-zoom, and then select one of the zoom levels to suit.
    That will then applied to all home/location maps generated by that widget.

    #366731

    blacspydr
    Buyer
    Post count: 44

    “That is only possible if you turn off auto-zoom, and then select one of the zoom levels to suit.” I tried that and it zooms in to the middle of the ocean.

    Theres no to hide specific regions (Hawaii, Alaska, Guam, American Samoa) from the map by default? How about changing the map zoom to be off centered?

    #366738

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    the map automatically position itself to include all markers at the correct zoom. If your listings are scattered all over the glob, most likely the center point will be the ocean.

    As Guust said, you can only turn off the auto zoom and set a different zoom manually, but that will not change the map position, just the zoom.

    It is not possible to hide markers from specific locations, the only way to do that is to remove the listings from your database.

    Thanks

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

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

Open Support Ticket