summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2015-05-25 17:31:26 +0200
committerClaude Paroz <claude@2xlibre.net>2017-01-02 19:45:52 +0100
commit2ebfda38e65177dfc7d6e90457ffa4a0fa2796f0 (patch)
treebcaac49031969e5e9663ac01d726c0b60651c5da /docs
parentf996f7366724c75a74fc316b456e6bee98688077 (diff)
Fixed #25004 -- Updated OpenLayers-based widget to OpenLayers 3
Thanks Tim Graham for the review.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/gis/forms-api.txt15
-rw-r--r--docs/releases/1.11.txt8
2 files changed, 18 insertions, 5 deletions
diff --git a/docs/ref/contrib/gis/forms-api.txt b/docs/ref/contrib/gis/forms-api.txt
index dae758c8cc..30279fe44d 100644
--- a/docs/ref/contrib/gis/forms-api.txt
+++ b/docs/ref/contrib/gis/forms-api.txt
@@ -164,18 +164,25 @@ Widget classes
isn't suitable for production use since it offers no guaranteed uptime
and runs on a slow server.
- .. _tailored to your needs: http://docs.openlayers.org/library/deploying.html
+ Also, the widget nows uses OpenLayers 3 instead of OpenLayers 2.
+
+ .. _tailored to your needs: http://openlayers.org/en/latest/doc/tutorials/custom-builds.html
``OSMWidget``
.. class:: OSMWidget
- This widget uses an OpenStreetMap base layer (Mapnik) to display geographic
- objects on.
- ``template_name`` is ``gis/openlayers-osm.html``.
+ This widget uses an OpenStreetMap base layer to display geographic objects
+ on. ``template_name`` is ``gis/openlayers-osm.html``.
The :class:`OpenLayersWidget` note about JavaScript file hosting above also
applies here. See also this `FAQ answer`_ about ``https`` access to map
tiles.
+ .. versionchanged:: 1.11
+
+ OpenLayers 2.x has been dropped in favor of OpenLayers 3. If you extend
+ the ``gis/openlayers-osm.html`` template, please review your custom
+ template.
+
.. _FAQ answer: https://help.openstreetmap.org/questions/10920/how-to-embed-a-map-in-my-https-site
diff --git a/docs/releases/1.11.txt b/docs/releases/1.11.txt
index 33429a21b5..9593a5c658 100644
--- a/docs/releases/1.11.txt
+++ b/docs/releases/1.11.txt
@@ -165,7 +165,8 @@ Minor features
* The OpenLayers-based form widgets now use ``OpenLayers.js`` from
``https://cdnjs.cloudflare.com`` which is more suitable for production use
- than the the old ``http://openlayers.org`` source.
+ than the the old ``http://openlayers.org`` source. They are also updated to
+ use OpenLayers 3.
* PostGIS migrations can now change field dimensions.
@@ -469,6 +470,11 @@ Backwards incompatible changes in 1.11
* The ``GEOSGeometry`` equality operator now also compares SRID.
+* The OpenLayers-based form widgets now use OpenLayers 3, and the
+ ``gis/openlayers.html`` and ``gis/openlayers-osm.html`` templates have been
+ updated. Check your project if you subclass these widgets or extend the
+ templates.
+
Database backend API
--------------------