Global variables used for storage. Most likely READ ONLY. Proper ay would be to encapsulate them in an anonymous function and write getters/setters, but if you are careful enough, this works.
Members
-
static window.fields :Object.<string, object>
-
References to Leaflet objects representing fields, indexed by entity ID. This object stores the mapping in the format
{ id1: feature1, ... }
. Note: While these are Leaflet objects, not all may be added to the map due to render limits. -
static window.links :Object.<string, object>
-
References to Leaflet objects representing links, indexed by entity ID. This object stores the mapping in the format
{ id1: feature1, ... }
. Note: While these are Leaflet objects, not all may be added to the map due to render limits. -
static window.portalAccessIndicator :object|null
-
Reference to the hacking range indicator of the selected portal. This is a Leaflet layer.
-
static window.portalRangeIndicator :object|null
-
Reference to the linking range indicator of the selected portal. This is a Leaflet layer.
-
static window.portals :Object.<string, object>
-
References to Leaflet objects representing portals, indexed by entity ID. This object stores the mapping in the format
{ id1: feature1, ... }
. Note: While these are Leaflet objects, not all may be added to the map due to render limits. -
static window.refreshTimeout :number|undefined
-
Stores the id of the timeout that kicks off the next refresh (ie value returned by
setTimeout()
) -
static window.selectedPortal :string|null
-
Stores the GUID of the selected portal, or is
null
if there is none. -
static window.urlPortal :string|null
-
Portal GUID if the original URL had it.
-
static window.urlPortalLL :object|null
-
Portal lng/lat if the orignial URL had it.