Providers

There are two kind of providers:

Map providers

Map providers are used for rendering. For this we have three options:

To set the map provider, use the map.provider property:

LOCATION_FIELD = {
    'map.provider': 'google',
}

Search providers

Search providers are used to translate addresses into latitude and longitude.

For this we only have two option to offer for now:

To set the search provider, use the search.provider property:

LOCATION_FIELD = {
    'search.provider': 'google',
}

Google

If you are going to use Google as a map or search provider, you may want to put your own credentials. You can even specify the map type:

LOCATION_FIELD = {
    'provider.google.api': '//maps.google.com/maps/api/js?sensor=false',
    'provider.google.api_key': '',
    'provider.google.api_libraries': '',
    'provider.google.map.type': 'ROADMAP',
}

Mapbox

If you are going to use Mapbox as a map provider, you have to add your own credentials:

LOCATION_FIELD = {
    'provider.mapbox.access_token': '',
    'provider.mapbox.max_zoom': 18,
    'provider.mapbox.id': 'mapbox.streets',
}

OpenStreetMap

For now, the only setting available for OpenStreetMap is the max_zoom:

LOCATION_FIELD = {
    'provider.openstreetmap.max_zoom': 18,
}