mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
Fixed #28195 -- Added OSMWidget.default_zoom attribute.
This commit is contained in:
parent
d4d812cb56
commit
a7975260b5
5 changed files with 17 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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`
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue