Creates a new CopyrightElementHandler
that updates the DOM element with the copyright info
of the given mapView
.
Note: Generally, the static [[install]] method can be used to create and attach a new
CopyrightElementHandler
to a MapView
Static copyright info.
Use when MapView's DataSource's do not provide proper copyright information.
Attaches this CopyrightInfo updates from MapView instance.
Destroys this object by removing all event listeners from the attached MapViews.
Stop following CopyrightInfo updates from MapView instance.
Set CopyrightInfo defaults to be used in case DataSource does not provide deatailed copyright information.
The defaults will applied to all undefined year
, label
and link
values in the copyright
information retrieved from MapView.
Sets the [[staticInfo]] property.
A CopyrightElementHandler
always displays a deduplicated sum of static copyright info and
copyright information obtained from attached MapViews.
This information is used when DataSource instances of given MapView do not provide copyright information.
Static
installInstall CopyrightElementHandler on DOM element and - optionally - attach to a MapView instance.
Generated using TypeDoc
Helper class that maintains up-to-date MapView copyright information in DOM element.
Example