0

Add tset config to leaflet layer, refactor marker

Instead of stuffing specialised values into overviewer.collections,
put a reference to the overviewerConfig tileset entry into the leaflet
layer, so that we can access it from callbacks easily.
This commit is contained in:
Nicolas F
2016-07-11 21:41:55 +02:00
committed by Andrew Chin
parent cfa2a9f39b
commit 2cfa3e8731
2 changed files with 19 additions and 18 deletions

View File

@@ -52,17 +52,14 @@ overviewer.collections = {
'markerInfo': {},
/**
* holds a reference to the current spawn marker.
* holds a reference to the spawn marker.
*/
'spawnMarker': null,
/**
* contains the spawn marker for each world
*/
'spawnMarkers': {},
/**
* if a user visits a specific URL, this marker will point to the coordinates in the hash
*/
* if a user visits a specific URL, this marker will point to the
* coordinates in the hash
*/
'locationMarker': null
};