@panoramax/web-viewer
Version:
Panoramax web viewer for geolocated pictures
46 lines (32 loc) • 1.96 kB
Markdown
<a name="Panoramax.components.menus.PictureLegend"></a>
## Panoramax.components.menus.PictureLegend ⇐ <code>[lit.LitElement](https://lit.dev/docs/api/LitElement/)</code>
**Kind**: static class of <code>Panoramax.components.menus</code>
**Extends**: <code>[lit.LitElement](https://lit.dev/docs/api/LitElement/)</code>
**Element**: pnx-picture-legend
**Slot**: `editors` External links to map editors, or any tool that may be helpful. Defaults to OSM tools (iD & JOSM).
* [.PictureLegend](#Panoramax.components.menus.PictureLegend) ⇐ <code>[lit.LitElement](https://lit.dev/docs/api/LitElement/)</code>
* [new PictureLegend()](#new_Panoramax.components.menus.PictureLegend_new)
* [.properties](#Panoramax.components.menus.PictureLegend+properties) : <code>Object</code>
* [.blockOnEditing(enabled)](#Panoramax.components.menus.PictureLegend+blockOnEditing)
<a name="new_Panoramax.components.menus.PictureLegend_new"></a>
### new PictureLegend()
Picture legend shows info about picture author, capture date, address, and access to metadata popup.
**Example**
```html
<pnx-picture-legend ._parent=${viewer} />
```
<a name="Panoramax.components.menus.PictureLegend+properties"></a>
### pictureLegend.properties : <code>Object</code>
Component properties.
**Kind**: instance property of [<code>PictureLegend</code>](#Panoramax.components.menus.PictureLegend)
**Properties**
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [light] | <code>boolean</code> | <code>false</code> | Lighter version (for iframes) |
<a name="Panoramax.components.menus.PictureLegend+blockOnEditing"></a>
### pictureLegend.blockOnEditing(enabled)
Force legend to not go anywhere beyond tags editor.
**Kind**: instance method of [<code>PictureLegend</code>](#Panoramax.components.menus.PictureLegend)
| Param | Type | Description |
| --- | --- | --- |
| enabled | <code>boolean</code> | Set to true to block legend, false to unblock |