Class: LegendView

Legend.Desktop LegendView

LegendView

new LegendView()

modules/legend/desktop/view.js, line 33
Listens to Events:

Extends

Methods

addContentHTML(legendParams){void}

modules/legend/desktop/view.js, line 100
Adds the rendered HTML to the legend definition, is needed in the template
Name Type Description
legendParams Array.<Object> Legend objects via reference

getNewPosition(touch, width, height, mapWidth, mapHeight){Object}

modules/legend/desktop/view.js, line 205
Function to calculate the new left and top positions
Name Type Description
touch Object Object containing the touch attributes
width Number Window width
height Number Window height
mapWidth Number Width of the map
mapHeight Number Height of the map
Returns:
Object containing the new position

hide(){void}

modules/legend/desktop/view.js, line 127
todo

paramsChanged(){void}

modules/legend/desktop/view.js, line 85
Reacts on change of legend params and rebuilds legend

removeView(){void}

modules/legend/desktop/view.js, line 135
todo

render(){Legend.Desktop.LegendView}

modules/legend/desktop/view.js, line 68
todo
Returns:
this

show(){void}

modules/legend/desktop/view.js, line 116
todo

toggleCollapsePanels(evt){void}

modules/legend/desktop/view.js, line 243
collapse or folds out all legend panels toogles the icon of the collapse-all button
Name Type Description
evt object trigger event

touchMoveEnd(){void}

modules/legend/desktop/view.js, line 191
Triggered on TouchEnd

touchMoveWindow(evt){void}

modules/legend/desktop/view.js, line 168
Triggered on TouchMove
Name Type Description
evt Event Event of moved legend window

touchStartWindow(evt){void}

modules/legend/desktop/view.js, line 152
Triggered on TouchStart
Name Type Description
evt Event Event, legend window being touched

updateLegendSize(){void}

modules/legend/desktop/view.js, line 144
Fits the legend height according to the class masterportal-container currently this function is executed when map sends updateSize