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:
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user