Skip to content

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).

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"
/>

<!-- 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>

legend.properties : Object

Component properties.

Kind: instance property of Legend
Properties

Name Type Description
[focus] string The focused main component (map, pic)
[picture] string The picture ID