@@ -110,7 +110,9 @@ If you don't have a live MapServer install to play with, you try the
110110Customizing settings
111111~~~~~~~~~~~~~~~~~~~~
112112
113- * environment variables::
113+ The viewer relies on two external files - a JavaScript file and a CSS file. By default these are loaded
114+ from ``https://mapserver.org/lib/``, however you can use your own copies of these files if external network access
115+ is restricted by setting the following two :ref:`environment_variables`:
114116
115117* ``MS_OPENLAYERS_JS_URL`` - the URL to the OpenLayers JavaScript library.
116118* ``MS_OPENLAYERS_CSS_URL`` - the URL to the OpenLayers CSS file used for styling.
@@ -130,7 +132,10 @@ If you aren't providing your own OpenLayers library through ``MS_OPENLAYERS_JS_U
130132``MS_OPENLAYERS_CSS_URL``, MapServer will point to hard-coded filepaths at `mapserver.org/lib` to find the OpenLayers
131133library, referred to in `maptemplate.c <https://github.com/MapServer/MapServer/blob/main/src/maptemplate.c#L54>`_.
132134
133- The contents on that `lib` folder is stored in the MapServer documentation repository,
134- in the [/extra](https://github.com/MapServer/MapServer-documentation/tree/main/extra) folder.
135+ This version of OpenLayers is a cut-down version that only contains the classes needed for the
136+ MapServer viewer. The ``ol-mapserver.js`` file is ~200 KB compared to the full library which is ~ 840 KB.
137+
138+ The contents of that `lib` folder is stored in the MapServer documentation repository,
139+ in the `/extra <https://github.com/MapServer/MapServer-documentation/tree/main/extra>`_ folder.
135140You are warmly encouraged to contribute to upgrading the OpenLayers library, at any time (maybe start
136- with creating a new [ Pull Request]( https://github.com/MapServer/MapServer-documentation/pulls) there.
141+ with creating a new ` Pull Request < https://github.com/MapServer/MapServer-documentation/pulls>`_ there) .
0 commit comments