mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #28195 -- Added OSMWidget.default_zoom attribute.
This commit is contained in:
committed by
Tim Graham
parent
d4d812cb56
commit
a7975260b5
@@ -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`
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user