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 205 -
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 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 evtobject 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 evtEvent Event of moved legend window -
touchStartWindow(evt){void}
modules/legend/desktop/view.js, line 152 -
Triggered on TouchStart
Name Type Description evtEvent 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