0

Adds spawn output rendering (variant of night which shows dark areas in red) and support for multiple map types with buttons to switch between them.

This commit is contained in:
Jenny
2010-12-14 02:39:01 -08:00
parent 5819ab60e0
commit d210076479
6 changed files with 96 additions and 24 deletions

View File

@@ -1,6 +1,5 @@
var config = {
path: 'tiles',
fileExt: '{imgformat}',
tileSize: 384,
defaultZoom: 1,
@@ -28,6 +27,21 @@ var signGroups = [
{label: "All", match: function(s) {return true}}
];
/* mapTypeData -- a list of alternate map renderings available. At least one rendering must be
* listed. When more than one are provided, controls to switch between them are provided, with
* the first one being the default.
*
* Required:
* label : string. Displayed on the control.
* path : string. Location of the rendered tiles.
*/
var mapTypeData=[
{'label': 'Unlit', 'path': 'tiles'},
// {'label': 'Day', 'path': 'lighting/tiles'},
// {'label': 'Night', 'path': 'night/tiles'},
// {'label': 'Spawn', 'path': 'spawn/tiles'}
];
// Please leave the following variables here:
var markerCollection = {}; // holds groups of markers