The campsite features layer is currently generated by MapServer.
The following is an (likely incomplete) instruction for installing this on Debian/Ubuntu where the direct call of the mapserv binary has been masked using mod_rewrite for security reasons.
This will need a running instance of osmpoidb.
- Create a symbolic link from mapserv cgi into your local www-root:
ln -s /usr/lib/cgi-bin/mapserv mapserv.fcgi
- Install libapache2-mod-fcgid and cgi-mapserver:
apt install libapache2-mod-fcgid cgi-mapserver
- Hide the
mapserv.fcgi
by Apache rewrite rule (adapt path tocamp-pitches.map
in example):
# This will deny a direct call of mapserv cgi
RewriteRule "^/mapserv.fcgi" "-" [F]
# This will redirect a tile URL request to mapserv cgi
RewriteRule ^/camping_features/+([0-9]+)/+([0-9]+)/([0-9]+)\.png$ /cgi-bin/mapserv?MAP=/osm/camping/pitch-layer/camp-pitches.map&MODE=tile&TILEMODE=gmap&FORMAT=image/png&LAYERS=default&TILE=$2+$3+$1 [PT]
-
Adapt path to
notofonts.lst
incamp-pitches.map
. -
Restart Apache webserver.