Fixed #28195 -- Added OSMWidget.default_zoom attribute.

This commit is contained in:
Danilo Bargen 2017-05-14 20:31:17 +02:00 committed by Tim Graham
parent d4d812cb56
commit a7975260b5
5 changed files with 17 additions and 2 deletions

View file

@ -185,6 +185,12 @@ Widget classes
The default center latitude and longitude are ``47`` and ``5``,
respectively, which is a location in eastern France.
.. attribute:: default_zoom
.. versionadded:: 2.0
The default map zoom is ``12``.
The :class:`OpenLayersWidget` note about JavaScript file hosting above also
applies here. See also this `FAQ answer`_ about ``https`` access to map
tiles.

View file

@ -75,6 +75,9 @@ Minor features
* Any :class:`~django.contrib.gis.geos.GEOSGeometry` imported from GeoJSON now
has its SRID set.
* Added the :attr:`.OSMWidget.default_zoom` attribute to customize the map's
default zoom level.
:mod:`django.contrib.messages`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~