com.mapitz.gwt.googleMaps.client
Class GCopyrightCollection

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.mapitz.gwt.googleMaps.client.GCopyrightCollection

public class GCopyrightCollection
extends com.google.gwt.core.client.JavaScriptObject

You use this class to manage 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.

Author:
aglaforge

Method Summary
 void addCopyright(GCopyright copyright)
          addCopyright(copyright) none Adds a copyright information object to the collection.
static GCopyrightCollection create()
          GCopyrightCollection() Copyright messages produced from this copyright collection will have the common prefix given as the argument.
static GCopyrightCollection create(java.lang.String prefix)
          GCopyrightCollection(prefix) Copyright messages produced from this copyright collection will have the common prefix given as the argument.
 java.lang.String getCopyrightNotice(GLatLngBounds bounds, int zoom)
          getCopyrightNotice(bounds, zoom) String Returns the prefix and all relevant copyright strings that are pertinent for the given map region at the given zoom level.
 java.lang.String[] getCopyrights(GLatLngBounds bounds, int zoom)
          getCopyrights(bounds, zoom) Array of String Returns all copyright strings that are pertinent for the given map region at the given zoom level.
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static GCopyrightCollection create(java.lang.String prefix)
GCopyrightCollection(prefix) Copyright messages produced from this copyright collection will have the common prefix given as the argument. Example: "Imagery (C) 2006"


create

public static GCopyrightCollection create()
GCopyrightCollection() Copyright messages produced from this copyright collection will have the common prefix given as the argument. Example: "Imagery (C) 2006"


addCopyright

public void addCopyright(GCopyright copyright)
addCopyright(copyright) none Adds a copyright information object to the collection.


getCopyrights

public java.lang.String[] getCopyrights(GLatLngBounds bounds,
                                        int zoom)
getCopyrights(bounds, zoom) Array of String Returns all copyright strings that are pertinent for the given map region at the given zoom level. Example: [ "Google", "Keyhole" ]


getCopyrightNotice

public java.lang.String getCopyrightNotice(GLatLngBounds bounds,
                                           int zoom)
getCopyrightNotice(bounds, zoom) String Returns the prefix and all relevant copyright strings that are pertinent for the given map region at the given zoom level. Example: "Imagery (C) 2006 Google, Keyhole"