Browse Source

Documented OSMWidget.default_lat/lon.

Danilo Bargen 7 years ago
parent
commit
680968b9e4
1 changed files with 11 additions and 1 deletions
  1. 11 1
      docs/ref/contrib/gis/forms-api.txt

+ 11 - 1
docs/ref/contrib/gis/forms-api.txt

@@ -173,7 +173,17 @@ Widget classes
 .. class:: OSMWidget
 
     This widget uses an OpenStreetMap base layer to display geographic objects
-    on. ``template_name`` is ``gis/openlayers-osm.html``.
+    on. Attributes are:
+
+    .. attribute:: template_name
+
+        ``gis/openlayers-osm.html``
+
+    .. attribute:: default_lat
+    .. attribute:: default_lon
+
+        The default center latitude and longitude are ``47`` and ``5``,
+        respectively, which is a location in eastern France.
 
     The :class:`OpenLayersWidget` note about JavaScript file hosting above also
     applies here. See also this `FAQ answer`_ about ``https`` access to map