Ticket #21618: 21618-1.diff

File 21618-1.diff, 1.6 KB (added by Claude Paroz, 11 years ago)

Documentation complement

  • docs/ref/contrib/gis/forms-api.txt

    diff --git a/docs/ref/contrib/gis/forms-api.txt b/docs/ref/contrib/gis/forms-api.txt
    index 435bcfc..f576678 100644
    a b Widget classes  
    156156    This is the default widget used by all GeoDjango form fields.
    157157    ``template_name`` is ``gis/openlayers.html``.
    158158
     159    ``OpenLayersWidget`` and ``OSMWidget`` (described below) refer to the
     160    ``openlayers.js`` file hosted on the http://openlayers.org Web site. This is
     161    working for basic usage, but not necessarily convenient for your site in
     162    production. You are therefore advised to subclass these widgets so as to be
     163    able to specify your own version of the ``openlayers.js`` file in the ``js``
     164    property of the inner ``Media`` class, either self-hosted and
     165    `tailored to your needs`_ or from a content-delivery network
     166    (http://cdnjs.com/, etc.). This will also allow you to serve the JavaScript
     167    file(s) through the https protocol when needed.
     168
     169    .. _tailored to your needs: http://docs.openlayers.org/library/deploying.html
     170
    159171``OSMWidget``
    160172
    161173.. class:: OSMWidget
    Widget classes  
    163175    This widget uses an OpenStreetMap base layer (Mapnik) to display geographic
    164176    objects on.
    165177    ``template_name`` is ``gis/openlayers-osm.html``.
     178
     179    The same note as above for ``OpenLayersWidget`` about JavaScript file
     180    hosting applies here too. See also this `FAQ answer`_ about https access to
     181    map tiles.
     182
     183    .. _FAQ answer: https://help.openstreetmap.org/questions/10920/how-to-embed-a-map-in-my-https-site
Back to Top