+ Reply to Thread
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: Leaflet GoogleMaps restriction to one country

  1. #11
    Senior Member
    Join Date
    Mar 2016
    Posts
    181
    oh.. thank you Rudy.. i will try it right now.

  2. #12
    Senior Member
    Join Date
    Mar 2016
    Posts
    181
    great! it works! .. thanks again Rudy

  3. #13
    Senior Member
    Join Date
    Mar 2016
    Posts
    181
    The search on map, search by distance and the search using by map in the home page are not covered by the codes? in the 3 said location search the other country still able to do the search

    c.png d.pnge.png

  4. #14
    Good Day Rudi,

    i can reach this setting on the panel could you attach a screenshot please?

    Screen Shot 2020-05-14 at 2.12.39 PM.png

  5. #15
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    To filter results on home page form (realty nova map)

    go to templates > tpl > blocks > horizontal_search.tpl

    at the bottom find:

    Code:
    Only registered members can view the code.
    and add below:
    Code:
    Only registered members can view the code.

    for search by distance, see my reply below

  6. #16
    Senior Member
    Join Date
    Mar 2016
    Posts
    181
    Quote Originally Posted by Rudi View Post
    To filter results on home page form (realty nova map)

    go to templates > tpl > blocks > horizontal_search.tpl

    at the bottom find:

    Code:
    Only registered members can view the code.
    and add below:
    Code:
    Only registered members can view the code.

    for search by distance, see my reply below
    it works in the main page Rudy. Can you please also give instructions for Search on Map and Seach be Distance. Please see the attached image.Thank you so much again.. ^^

  7. #17
    How to do this restriction on Search on map?

    When I go into the search on map page my map shows I'm in Kenya. Shouldn't it show im in Sweden in my hometown?

  8. #18
    Senior Member
    Join Date
    Sep 2019
    Location
    Australia mate.
    Posts
    164
    Quote Originally Posted by Peter Jonsson View Post
    How to do this restriction on Search on map?

    When I go into the search on map page my map shows I'm in Kenya. Shouldn't it show im in Sweden in my hometown?
    The "map showing location as Kenya" issue has a solution in this thread below. I'm surprised we haven't seen a new point release to 4.8.1 as there have been quite a few issues addressed and fixed in the forums since 4.8 released.

    https://forum.flynax.com/showthread....ighlight=kenya

  9. #19
    Guru
    Join Date
    Jul 2019
    Location
    Australia
    Posts
    657
    Quote Originally Posted by Rudi View Post
    Hello all,

    For those who need to restrict results in city/zip code field by one country (search by distance)

    you need to select your country from default countries list:

    1. Common > Basic Settings > Search by Distance > Listing Fields Mapping > Country field > select > Save

    2. Default country > your country > Save
    hello,

    this is not working for the home page search bar in the header on the general olx template.
    if i type a city i get cities with same names from all countries.

    Just need locations relevant to Australia.

    Any help please

  10. #20
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Hello,

    Go to templates > olx > tpl > blocks > home_content.tpl

    find:
    Code:
    Only registered members can view the code.
    replace it with:
    Code:
    Only registered members can view the code.

+ Reply to Thread