Skip to content

Commit b7f4051

Browse files
authored
expose the embedded OpenLayers lib (for template=openlayers) in a new /extra folder (#1002)
1 parent 8ba7bf4 commit b7f4051

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+1046
-0
lines changed

conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,12 @@ def __getattr__(cls, name):
157157
# so a file named "default.css" will overwrite the builtin "default.css".
158158
html_static_path = ['_static']
159159

160+
# Add paths that you wish to copy to the output directory
161+
# see: https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-html_extra_path
162+
# note that the actual 'extra' folder itself is excluded, so only its contents
163+
# are copied to the output directory
164+
html_extra_path = ['./extra']
165+
160166
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
161167
# using the given strftime format.
162168
html_last_updated_fmt = '%Y-%m-%d'

en/cgi/openlayers.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,15 @@ Customizing settings
100100
* environment variables::
101101

102102
MS_OPENLAYERS_JS_URL - The URL to the OpenLayers javascript library. Per default the library loaded from the MapServer web server.
103+
104+
Location of the embedded OpenLayers.js file
105+
-------------------------------------------
106+
107+
If you aren't providing your own OpenLayers library through `MS_OPENLAYERS_JS_URL`,
108+
MapServer will point to a hardcoded filepath of `www.mapserver.org/lib` to find the OpenLayers
109+
library, referred to in [maptemplate.c](https://github.com/MapServer/MapServer/blob/main/src/maptemplate.c#L54).
110+
111+
The contents on that `lib` folder is stored in the MapServer documentation repository,
112+
in the [/extra](https://github.com/MapServer/MapServer-documentation/tree/main/extra) folder.
113+
You are warmly encouraged to contribute to upgrading the OpenLayers library, at any time (maybe start
114+
with creating a new [Pull Request](https://github.com/MapServer/MapServer-documentation/pulls) there.

extra/lib/OpenLayers-ms60.js

Lines changed: 591 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extra/lib/README.md

Lines changed: 23 additions & 0 deletions

extra/lib/img/blank.gif

42 Bytes
3.1 KB
1.17 KB
1.19 KB

extra/lib/img/east-mini.png

451 Bytes
451 Bytes

0 commit comments

Comments
 (0)