UIConfigurator
This class configures the UI of a map according to its mapconfig
Static Method Summary
Static Public Methods | ||
public static |
Fixes all urls in the css string to the right path |
|
public static |
templateCSS(css: string, colors: Color[]): string Fill the given css String with the rigth colors |
Constructor Summary
Public Constructor | ||
public |
constructor(map: G4UMap) |
Member Summary
Public Members | ||
public |
|
|
public |
cssFile_: * |
|
public |
|
Private Members | ||
private |
|
|
private |
|
|
private |
Counts how many cssFiles are getting loaded |
Method Summary
Public Methods | ||
public |
applyLayout(layout: *) |
|
public |
|
|
public |
|
|
public |
Loads the from cssFile the given conf (if any is given) and inserts into a style tag in the head of the document |
Private Methods | ||
private |
initialize_(mapConfigCopy: MapConfig) This functions is called the first time the configureUI function is called |
Static Public Methods
Public Constructors
Public Members
public controlFactory: * source
public cssFile_: * source
public handleMobileChange__: * source
Private Members
Public Methods
public applyLayout(layout: *) source
Params:
Name | Type | Attribute | Description |
layout | * |
public configureUI() source
public loadCSS(conf: MapConfig): Promise source
Loads the from cssFile the given conf (if any is given) and inserts into a style tag in the head of the document
Params:
Name | Type | Attribute | Description |
conf | MapConfig |