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 200
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 122
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 130
todo

render(){Legend.Desktop.LegendView}

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

show(){void}

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

toggleCollapsePanels(evt){void}

modules/legend/desktop/view.js, line 238
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 186
Triggered on TouchEnd

touchMoveWindow(evt){void}

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

touchStartWindow(evt){void}

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

updateLegendSize(){void}

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