flywave-mapview.copyrightelementhandler
Home > @flywave/flywave-mapview > CopyrightElementHandler
CopyrightElementHandler class
Helper class that maintains up-to-date MapView copyright information in DOM element.
Signature:
export declare class CopyrightElementHandler
Example
// JavaScript const mapView = new MapView({ ... }); CopyrightElementHandler.install("copyrightNotice", mapView);
Constructors
Constructor | Modifiers | Description |
|---|---|---|
Creates a new Note: Generally, the static [[install]] method can be used to create and attach a new |
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
CopyrightInfo[] | undefined | Static copyright info. Use when MapView's DataSource's do not provide proper copyright information. | ||
() => void | Update copyright info text in controlled HTML element. |
Methods
Method | Modifiers | Description |
|---|---|---|
Attaches this updates from MapView instance. | ||
Destroys this object by removing all event listeners from the attached MapViews. | ||
Stop following updates from MapView instance. | ||
| Install CopyrightElementHandler on DOM element and - optionally - attach to a MapView instance. | |
Set defaults to be used in case DataSource does not provide deatailed copyright information. | ||
Sets the [[staticInfo]] property. A This information is used when DataSource instances of given MapView do not provide copyright information. |