new LegendView()
modules/legend/desktop/view.js, line 33
Listens to Events:
- Legend#event:hide
- Legend#event:changeLegendParams
- Legend#event:changeParamsStyleWMSArray
- Tool#event:changeIsActive
- Map#event:RadioTriggerMapUpdateSize
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 legendParamsArray.<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 touchObject Object containing the touch attributes widthNumber Window width heightNumber Window height mapWidthNumber Width of the map mapHeightNumber 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 evtobject 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 evtEvent Event of moved legend window -
touchStartWindow(evt){void}
modules/legend/desktop/view.js, line 147 -
Triggered on TouchStart
Name Type Description evtEvent 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