Make WMS code in README slightly more real

This commit is contained in:
Dave Conway-Jones 2019-03-23 22:30:49 +00:00
parent 66f84b96a5
commit 286447438b
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4

View File

@ -442,24 +442,24 @@ Create and edit these into an executeable file called **mapserv**, located in th
#! /bin/sh
# set this to the path of your WMS map file (which in turn points to your tiles)
MS_MAPFILE=~/Data/maps/uk.map
MS_MAPFILE=/home/pi/maps/gb.map
export MS_MAPFILE
# and set this to the path of your cgi-mapserv executable
/usr/bin/mapserv
You can then add a new WMS Base layer by injecting a message like
msg.payload.command.map = {
msg.payload = { command : { map : {
"name": "Local WMS",
"url": "http://localhost:1880/cgi-bin/mapserv", // we will serve the tiles from this node locally.
"url": "/cgi-bin/mapserv", // we will serve the tiles from this node locally.
"opt": {
"layers": "gb", // specifies a layer in your map file
"layers": "gb", // specifies a layer in your map file
"format": "image/png",
"transparent": true,
"attribution": "© Ordnance Survey, UK"
},
"wms": true // set to true for WMS type mapserver
}
"wms": true // set to true for WMS type mapserver
}}}
## Demo Flow