You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This RFC proposes adding functionality to MapServer for dynamically generating a homepage that lists all map services available in a given deployment.
16
+
This RFC proposes adding functionality to MapServer for dynamically generating a index page that lists all map services available in a given deployment.
17
17
This feature would enable the creation of pages like https://maps.isric.org/ directly from a MapServer deployment, without requiring
18
18
additional scripting. While scripting can achieve this, integrating the capability into MapServer itself
19
19
would offer greater convenience and maintainability.
20
20
21
21
With the introduction of the :ref:`CONFIG file <config>` in MapServer 8.0, it is now possible to centrally manage information about all Mapfiles in a deployment.
22
-
This would ensure that the homepage remains automatically synchronised with both the CONFIG file and the capabilities of the Mapfiles it references.
22
+
This would ensure that the index page remains automatically synchronised with both the CONFIG file and the capabilities of the Mapfiles it references.
23
23
24
-
The homepage would be a "superset" of all available Mapfiles in a MapServer deployment, as listed in the CONFIG file.
25
-
Each individual Mapfile would still have its own OGC API landing page, so the homepage is best described as a directory of all landing pages.
24
+
The index page would be a "superset" of all available Mapfiles in a MapServer deployment, as listed in the CONFIG file.
25
+
Each individual Mapfile would still have its own OGC API landing page, so the index page is best described as a directory of all landing pages.
26
26
27
27
As most MapServer deployments will likely be serving out a combination of WxS and new OGC API services for some time to come,
28
28
it will allow both types to be listed together.
29
29
30
30
2.1 Proposed Solution
31
31
=====================
32
32
33
-
A new MapServer :ref:`CGI mode <cgi>` - ``mode=config`` will be added to allow details of the MapServer services to be returned. The ``MAPS`` block
34
-
in the :ref:`CONFIG file <config>` will be read to return a list of available services. By default the homepage service will be disabled unless a new
35
-
``ENV`` option ``MS_HOMEPAGE_TEMPLATE`` has been set. This should be set to a folder containing a ``homepage.html`` value. However if only JSON
36
-
responses are required it can be set to any value to enable the homepage service.
33
+
New MapServer functionality will be added to allow details of the MapServer services to be returned. The ``MAPS`` block
34
+
in the :ref:`CONFIG file <config>` will be read to return a list of available services. By default the index page service will be disabled unless a new
35
+
``ENV`` option ``MS_INDEX_TEMPLATE_DIRECTORY`` has been set. This should be set to a folder containing a ``landing.html`` value. However if only JSON
36
+
responses are required it can be set to any value to enable the index page service.
0 commit comments