oneworld.WebMap.add_panel

WebMap.add_panel(title=None, lines=None, noinfo=' ', position='topright', width=None, height=None)

Add an information panel.

The indormation to be displayed will be passed by the different events on the different elements created in the map, if defined when adding those elements to the map.

Parameters:
  • title (str) – Title on top of the panel. Will always be visible. Displayed in bold font (Default: None).

  • noinfo (str) – Text to be displayed in case there is no info passed to the panel (when no event is triggered). (Default: ‘ ‘).

  • position ({'topleft', 'topright', 'bottomleft', 'bottomright'}) – Position of the panel in the map (Default: ‘topright’).

  • width (str) – When set, fixed width of the panel. Must also include units (e.g. ‘10px’, ‘25%’). If not set (i.e. set to None), panel will dinamically adjust its dimensions to accomodate text to be displayed (Default: None).

  • height (str) – When set, fixed height of the panel. Must also include units (e.g. ‘10px’, ‘25%’). If not set (i.e. set to None), panel will dinamically adjust its dimensions to accomodate text to be displayed (Default: None).