erdem / django-map-widgets

Highly customizable, intuitive, and user-friendly map widgets for GeoDjango applications.
MIT License
449 stars 119 forks source link

Only cities in widget #102

Closed zyjswiadomielife closed 4 years ago

zyjswiadomielife commented 4 years ago

Hi, it's possible, to limit only to cities?

erdem commented 4 years ago

Yes, it's possible. You need to check google place autocomplete documentation for limit by city option first, then update the map autocomplete widget options in GooglePlaceAutocompleteOptions settings attribute.

https://django-map-widgets.readthedocs.io/en/latest/widgets/point_field_map_widgets.html#settings

Read properly this part of the documentation.