Hey guys
Is there any way to restrict google maps (with Leaflet) on Nova template to have autocompletion for a specific country?
Thank you!
Hey guys
Is there any way to restrict google maps (with Leaflet) on Nova template to have autocompletion for a specific country?
Thank you!
Hello Sam,
Go to ftp > public_html > libs > maps > maps.js > this.createMap
below the string input.type = 'text';
add the following code:
Code:Only registered members can view the code.
Last edited by Rudi; May 14, 2020 at 03:37 PM.
Hi Rudi
Thanks a lot for your quick and efficient reply.
All the best.
Hello Rudi,
Is it working for home page search, add listing page and search on map?
I already added the code and test on the above 3 pages but unfortunately its not working.
Additionally, what about adding more than one country (2 or 3 countries)?
Thanks,
Unfortunately, it doesn't allow to use 2 or more countries
Hello Rudi,
It would be highly appreciated if you could share with us how to restrict Autocompletion to one country in Header Search box in Nova Template.
Thanks,
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,
you should use country names without angled brackets < > as they are for comment part