summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDanilo Bargen <mail@dbrgn.ch>2017-05-12 17:24:53 +0200
committerTim Graham <timograham@gmail.com>2017-05-13 17:44:45 -0400
commit84f6098aaf8d9cca521f7776134564b7f5ed704a (patch)
tree6691c09ec727fc2a415b261cc24d48d501212ba8 /docs
parent28fe20b5aff84553b70e495e211253ab25394280 (diff)
[1.11.x] Documented OSMWidget.default_lat/lon.
Backport of 680968b9e42d63f9a3ee929ebd6afdef06999d24 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/gis/forms-api.txt12
1 files changed, 11 insertions, 1 deletions
diff --git a/docs/ref/contrib/gis/forms-api.txt b/docs/ref/contrib/gis/forms-api.txt
index 51dfa4ad18..32cdd51dad 100644
--- a/docs/ref/contrib/gis/forms-api.txt
+++ b/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