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
HTML DOM element or a HTML DOM element id
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.
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.
Update copyright info text in controlled HTML element.
Install CopyrightElementHandler on DOM element and - optionally - attach to a MapView instance.
HTML DOM element or a HTML DOM element id
Generated using TypeDoc
Helper class that maintains up-to-date MapView copyright information in DOM element.
// HTML snippet <div id="copyrightNotice" style="position:absolute; right:0; bottom:0; z-index:100"></div> // JavaScript const mapView = new MapView({ ... }); CopyrightElementHandler.install("copyrightNotice", mapView);