Legend
Panoramax.components.ui.widgets.Legend ⇐ lit.LitElement
Kind: static class of Panoramax.components.ui.widgets
Extends: lit.LitElement
Element: pnx-widget-legend
Slot: editors External links to map editors, or any tool that may be helpful. Defaults to OSM tools (iD & JOSM).  
- .Legend ⇐ lit.LitElement- new Legend()
- .properties : Object
 
new Legend()
Legend widget, handling switch between map and photo components. Also displays a default "About Panoramax" message.
Example
<!-- Default legend -->
<pnx-widget-legend
  _parent=${viewer}
  focus="map"
  picture="PICTURE-ID-IF-ANY"
></pnx-widget-legend>
<!-- With custom editor links -->
<pnx-widget-legend
  _parent=${viewer}
  focus="map"
  picture="PICTURE-ID-IF-ANY"
>
  <div slot="editors"><a href="http://my.own.tool">Edit in my own tool</a></div>
</pnx-widget-legend>
<!-- Lighter version -->
<pnx-widget-legend
  _parent=${viewer}
  focus="pic"
  picture="PICTURE-ID-IF-ANY"
  light
></pnx-widget-legend>
legend.properties : Object
Component properties.
Kind: instance property of Legend
Properties
| Name | Type | Default | Description | 
|---|---|---|---|
| [focus] | string | The focused main component (map, pic) | |
| [picture] | string | The picture ID | |
| [light] | boolean | false | Lighter version (for iframes) |