mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-24 03:05:28 +01:00
Separated configuration to config.js.
This commit is contained in:
parent
c2d8df8e94
commit
cbed5c3a01
10
web/config.js
Normal file
10
web/config.js
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
var setup = {
|
||||||
|
tileUrl: 'tiles/',
|
||||||
|
updateUrl: 'up/', // For Apache and lighttpd
|
||||||
|
// updateUrl: 'up/default.aspx?lasttimestamp=', // For IIS
|
||||||
|
updateRate: 2000, // Seconds the map should poll for updates. (Seconds) * 1000. The default is 2000 (every 2 seconds).
|
||||||
|
showPortraitsOnMap: true,
|
||||||
|
showPortraitsInPlayerList: true,
|
||||||
|
showPlayerNameOnMap: false
|
||||||
|
};
|
||||||
|
|
@ -11,6 +11,7 @@
|
|||||||
<link rel="shortcut icon" href="follow_off.png" type="image/png" />
|
<link rel="shortcut icon" href="follow_off.png" type="image/png" />
|
||||||
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
|
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
|
||||||
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />
|
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />
|
||||||
|
<script type="text/javascript" src="config.js"></script>
|
||||||
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
|
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
|
||||||
<script type="text/javascript" src="map.js"></script>
|
<script type="text/javascript" src="map.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
11
web/map.js
11
web/map.js
@ -1,14 +1,3 @@
|
|||||||
var setup = {
|
|
||||||
tileUrl: 'http://www.yourdomain.com/minecraft/tiles/',
|
|
||||||
updateUrl: 'http://www.yourdomain.com/minecraft/up/', // Or if using ASP.NET: http://www.yourdomain.com/minecraft/up/default.aspx?lasttimestamp=
|
|
||||||
updateRate: 2000, //Seconds the map should poll for updates. (Seconds) * 1000. The default is 2000 (every 2 seconds).
|
|
||||||
showPortraitsOnMap: true,
|
|
||||||
showPortraitsInPlayerList: true,
|
|
||||||
showPlayerNameOnMap: false
|
|
||||||
};
|
|
||||||
|
|
||||||
/* THERE SHOULD BE NO NEED FOR MANUAL CONFIGURATION BEYOND THIS POINT */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This constructor creates a label and associates it with a marker.
|
* This constructor creates a label and associates it with a marker.
|
||||||
* It is for the private use of the MarkerWithLabel class.
|
* It is for the private use of the MarkerWithLabel class.
|
||||||
|
Loading…
Reference in New Issue
Block a user