Configuring the Spatial Portal - AtlasOfLivingAustralia/documentation GitHub Wiki
Introduction
We try to describe some extra steps in order to customize and adapt the Spatial service, like changing the menu items, base layers, WMS servers, and the skin.
Some settings
Map area
The preferred way to change the spatial bounding box area in using the la-toolkit, but if you prefer to do it manually:
- open config in
/data/spatial-hub/config/spatial-hub-config.yml
- see the default_areas section and specify your own coordinates, name, etc. These can be configured via some ansible var. Then
service tomcat7 restart
(or 8 or 9). You can see the result by clicking on "Tools -> Add area report".
Custom WMS services
Add your own WMS servers - (see presetWMSServers
in the config in /data/spatial-hub/config/spatial-hub-config.yml
)
If your json request ends with a 401-Unauthorized error, add your server host to the allowproxy line in spatial-hub-config.yml
:
allowProxy:
server:"spatial.l-a.site;data.auscover.org.au;data.auscover.org.au:80;geoserver.imos.org.au;www.ga.gov.au/gis;geofabric.bom.gov.au"
Skinning
- create a custom version of portal.gsp (as portal-yoursite.gsp)
- put that custom skin file in
/data/spatial-hub/views/layouts/portal-yoursite.gsp
- point to that file in
/data/spatial-hub/config/spatial-hub-config.yml
with eg.skin.layout=portal-yoursite
- restart spatial and see how looks like
See the spatial-hub README for skinning options for the Spatial Portal.