autk-map / AutkMapUi
Class: AutkMapUi
Defined in: map-ui.ts:8
Constructors
Constructor
new AutkMapUi(
map):AutkMapUi
Defined in: map-ui.ts:17
Parameters
map
Returns
AutkMapUi
Properties
_activeLayer
protected_activeLayer:Layer|null=null
Defined in: map-ui.ts:11
_legend
protected_legend:HTMLDivElement|null=null
Defined in: map-ui.ts:14
_map
protected_map:AutkMap
Defined in: map-ui.ts:9
_menuIcon
protected_menuIcon:HTMLDivElement|null=null
Defined in: map-ui.ts:12
_subMenu
protected_subMenu:HTMLDivElement|null=null
Defined in: map-ui.ts:13
_uiMargin
protected_uiMargin:number=10
Defined in: map-ui.ts:10
Accessors
activeLayer
Get Signature
get activeLayer():
Layer|null
Defined in: map-ui.ts:23
Returns
Layer | null
Set Signature
set activeLayer(
layer):void
Defined in: map-ui.ts:24
Parameters
layer
Layer | null
Returns
void
map
Get Signature
get map():
AutkMap
Defined in: map-ui.ts:21
Returns
Set Signature
set map(
map):void
Defined in: map-ui.ts:22
Parameters
map
Returns
void
Methods
buildActiveLayerDropdown()
protectedbuildActiveLayerDropdown():void
Defined in: map-ui.ts:185
Returns
void
buildLegend()
protectedbuildLegend(width?,height?):void
Defined in: map-ui.ts:223
Parameters
width?
number = 250
height?
number = 80
Returns
void
buildLegendCheckbox()
protectedbuildLegendCheckbox():void
Defined in: map-ui.ts:199
Returns
void
buildMenuIcon()
protectedbuildMenuIcon():void
Defined in: map-ui.ts:121
Returns
void
buildSubMenu()
protectedbuildSubMenu():void
Defined in: map-ui.ts:155
Returns
void
buildUi()
buildUi():
void
Defined in: map-ui.ts:75
Build all UI elements once. Called from AutkMap.init().
Returns
void
buildVisibleLayersDropdown()
protectedbuildVisibleLayersDropdown():void
Defined in: map-ui.ts:171
Returns
void
changeActiveLayer()
changeActiveLayer(
layer):void
Defined in: map-ui.ts:47
Parameters
layer
Layer | null
Returns
void
handleResize()
handleResize():
void
Defined in: map-ui.ts:28
Returns
void
populateActiveLayersList()
protectedpopulateActiveLayersList():void
Defined in: map-ui.ts:257
Returns
void
populateVisibleLayersList()
protectedpopulateVisibleLayersList():void
Defined in: map-ui.ts:242
Returns
void
refreshLegend()
refreshLegend(
layer):void
Defined in: map-ui.ts:89
Called externally (e.g. from updateRenderInfoProperty) when isColorMap changes. Updates the legend and checkbox to reflect the new state.
Parameters
layer
Layer | null
Returns
void
syncCheckbox()
protectedsyncCheckbox():void
Defined in: map-ui.ts:100
Returns
void
syncLayerLists()
protectedsyncLayerLists():void
Defined in: map-ui.ts:114
Returns
void
syncLegendVisibility()
protectedsyncLegendVisibility():void
Defined in: map-ui.ts:107
Returns
void
updateLegendContent()
protectedupdateLegendContent(width?,height?):void
Defined in: map-ui.ts:295
Parameters
width?
number = 250
height?
number = 80
Returns
void