Add squaremap server definition (alias for pl3xmap)
This commit is contained in:
parent
51ec91be22
commit
ac7c269fe1
@ -27,9 +27,14 @@
|
|||||||
<script>
|
<script>
|
||||||
window.liveAtlasConfig = {
|
window.liveAtlasConfig = {
|
||||||
// By default LiveAtlas looks for a dynmap standalone/config.js file
|
// By default LiveAtlas looks for a dynmap standalone/config.js file
|
||||||
// This configuration can be used instead to support Pl3xmap installations multiple servers
|
// This configuration can be used instead to support Pl3xmap and Squaremap installations as well as multiple servers (external webserver required)
|
||||||
// To configure multiple servers, see https://github.com/JLyne/LiveAtlas/wiki/Configuring-Multiple-Servers.
|
// To configure multiple servers, see https://github.com/JLyne/LiveAtlas/wiki/Configuring-Multiple-Servers.
|
||||||
// servers: {
|
// servers: {
|
||||||
|
// Squaremap internal webserver configuration
|
||||||
|
// squaremap: {
|
||||||
|
// squaremap: window.location.pathname
|
||||||
|
// },
|
||||||
|
|
||||||
// Pl3xmap internal webserver configuration
|
// Pl3xmap internal webserver configuration
|
||||||
// pl3xmap: {
|
// pl3xmap: {
|
||||||
// pl3xmap: window.location.pathname
|
// pl3xmap: window.location.pathname
|
||||||
|
1
src/index.d.ts
vendored
1
src/index.d.ts
vendored
@ -76,6 +76,7 @@ interface LiveAtlasServerDefinition {
|
|||||||
type: 'dynmap' | 'pl3xmap';
|
type: 'dynmap' | 'pl3xmap';
|
||||||
dynmap?: DynmapUrlConfig;
|
dynmap?: DynmapUrlConfig;
|
||||||
pl3xmap?: string;
|
pl3xmap?: string;
|
||||||
|
squaremap?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Messages defined directly in LiveAtlas and used for all servers
|
// Messages defined directly in LiveAtlas and used for all servers
|
||||||
|
@ -42,6 +42,11 @@ const validateLiveAtlasConfiguration = (config: any): Map<string, LiveAtlasServe
|
|||||||
|
|
||||||
serverConfig.id = server;
|
serverConfig.id = server;
|
||||||
|
|
||||||
|
//Squaremap and Pl3xmap are currently interchangeable
|
||||||
|
if(typeof serverConfig.squaremap !== 'undefined') {
|
||||||
|
serverConfig.pl3xmap = serverConfig.squaremap;
|
||||||
|
}
|
||||||
|
|
||||||
if(typeof serverConfig.pl3xmap !== 'undefined') {
|
if(typeof serverConfig.pl3xmap !== 'undefined') {
|
||||||
serverConfig.type = 'pl3xmap';
|
serverConfig.type = 'pl3xmap';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user