Hey guys
Is there any way to restrict google maps (with Leaflet) on Nova template to have autocompletion for a specific country?
Thank you!
Printable View
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.
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
Hi Rudi. i did this both but still i can post a new listings and search to the other country.. please see the attached images.
Attachment 3697
Attachment 3698
Hi Rudi. i did this both but still i can post a new listings and search to the other country.. please see the attached images.
Attachment 3699 Attachment 3700
Hello,
you should use country names without angled brackets < > as they are for comment part