Packagecom.google.maps
Classpublic class CopyrightNotice

CopyrightNotice stores an array of strings representing copyright text to display on the map, but can also be cast to a single text string. Copyright information for several data providers may apply to a region of the map: maintaining an array allows the text for the individual providers to be extracted. Use the toString method if you wish simply to obtain a single compound text string. You are unlikely to need to construct a CopyrightNotice yourself, but ICopyrightCollection provides a method, getCopyrightNotice() that returns an instance of this class.



Public Methods
 MethodDefined by
  
CopyrightNotice(prefix:String, copyrightTexts:Array)
Construct a CopyrightNotice from a text prefix and an array of elements of type String representing the individual copyright notices.
CopyrightNotice
  
getPrefix():String
Retrieves the copyright prefix.
CopyrightNotice
  
getTexts():Array
Retrieves the array of copyright texts.
CopyrightNotice
  
toString():String
Returns a single string made up of the prefix followed by a list of the text array elements.
CopyrightNotice
Constructor detail
CopyrightNotice()constructor
public function CopyrightNotice(prefix:String, copyrightTexts:Array)

Construct a CopyrightNotice from a text prefix and an array of elements of type String representing the individual copyright notices. Note that this class stores a reference to this array, rather than cloning the elements.

Parameters
prefix:String — Copyright prefix.
 
copyrightTexts:Array — Text of each copyright.
Method detail
getPrefix()method
public function getPrefix():String

Retrieves the copyright prefix.

Returns
String — Copyright prefix.
getTexts()method 
public function getTexts():Array

Retrieves the array of copyright texts. Each element in this array is of type String.

Returns
Array — Copyright texts.
toString()method 
public function toString():String

Returns a single string made up of the prefix followed by a list of the text array elements.

Returns
String — String representation of this instance.

Example
   var notice:CopyrightNotice = new CopyrightNotice(
       "Copyright",
       [ "Company A", "Company B" ]);
   trace(notice.toString());  // outputs "Copyright Company A, CompanyB"