CopyrightCollection manages copyright messages displayed on maps of custom
map type. If you don't implement custom map types, then you don't need to
use this class. A copyright collection contains information about which
copyright to display for which region on the map at which zoom level.
This is very important for map types that display heterogenous data such
as the satellite map type.
public function CopyrightCollection(opt_prefix:String = null)
Creates a copyright collection for the given map type/spec.
Parameters
| opt_prefix:String (default = null ) — Prefix for copyrights (optional).
|
public function addCopyright(copyright:Copyright):Boolean
Adds the given copyright to the collection, returning true if the
copyright was new and was added or false if the copyright was a duplicate
and ignored.
Parameters
Returns
| Boolean — Whether a new copyright was added.
|
protected function clearWrapper():void
Remove all event listeners and clear the wrapper.
public function getCopyrightNotice(bounds:LatLngBounds, zoom:Number):CopyrightNotice
Returns a CopyrightNotice instance for the given viewport.
Parameters
| bounds:LatLngBounds — Query bounds.
|
|
| zoom:Number — Zoom level.
|
Returns
public function getCopyrights(bounds:LatLngBounds, zoom:Number):Array
Retrieves an array of elements of type String, which comprises the
copyright text that we should display for the given viewport.
Parameters
| bounds:LatLngBounds — Query bounds.
|
|
| zoom:Number — Zoom level.
|
Returns
| Array — Resulting array of copyright strings.
|
public function getCopyrightsAtLatLng(latLng:LatLng):Array
Returns an array of elements of type Copyright, which are the copyrights
pertaining to the specified location.
Parameters
| latLng:LatLng — The point for which we want to get copyrights for.
|
Returns
| Array — Resulting array of copyrights.
|