Hosting on own server
For hosting Battle Staff Tools on your own web server, you will have to share a folder on your server and place the Battle Staff Tools html file and license file in that folder.
Rename the Battle Staff Tools html file to index.html
, and make sure that the license file is called license.licensekey
. If you have an enterprise license the license key is built into the html file and there is no need for an external license key.
Configuring maps
You configure maps for Battle Staff Tools in a file called manifest.json
. It should be placed in the same directory as index.html
.
{
"defaultMapLayer": "pmtiles_osm",
"baseLayers": [
{
"title": "Protomaps Open Street Map",
"type": "pmtiles",
"name": "pmtiles_osm",
"url": "geodata/OpenStreetMap.pmtiles"
},
{
"title": "Vector map made by ArcGIS",
"type": "vtpk",
"name": "my_vtpk",
"url": "geodata/my-map.vtpk"
},
{
"title": "Raster map made by ArcGIS",
"type": "tpkx",
"name": "my_tpkx",
"url": "geodata/my-map.tpkx"
}
]
}
The different types you can configure are:
- "pmtiles" relative path to a pmtiles file
- "vtpk" relative path to a vtpk file
- "tpkx" releative path to a tpkx tile
- "xyz" link template for a XYZ service, for example "https://example.com/{z}/{x}/{y}.png"
Worldwide Equipment Guide
For Battle Staff Tools to read the Worldwide Equipment Guide rename the zipdb file to weg-database.zipdb
and place it next to index.html
.