|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.maps.client.TileLayer
public abstract class TileLayer
Implement this class in order to provide custom map tile layers, either through MapType or TileLayerOverlay. An implementation should use an instance of TileLayer as a prototype, because this implements the copyright handling.
Field Summary | |
---|---|
protected com.google.gwt.core.client.JavaScriptObject |
jsoPeer
|
Constructor Summary | |
---|---|
|
TileLayer(CopyrightCollection copyrights,
int minResolution,
int maxResolution)
|
protected |
TileLayer(com.google.gwt.core.client.JavaScriptObject jsoPeer)
Constructs a new TileLayer instance by wrapping an existing JavaScript instance of GTileLayer. |
Method Summary | |
---|---|
void |
addTileLayerNewCopyrightHandler(TileLayerNewCopyrightHandler handler)
Add a handler for "newcopyright" events. |
static TileLayer |
createPeer(com.google.gwt.core.client.JavaScriptObject jsoPeer)
|
int |
getMaxResolution()
Returns to the map type the highest zoom level of this tile layer. |
int |
getMinResolution()
Returns to the map type the lowest zoom level of this tile layer. |
abstract double |
getOpacity()
Returns to the map the opacity with which to display this tile layer. |
abstract java.lang.String |
getTileURL(Point tile,
int zoomLevel)
Returns to the map the URL of the map tile with the tile indices given by the x and y properties of the Point, at the given zoom level. |
abstract boolean |
isPng()
Returns to the map the copyright messages for this tile layer that are pertinent for the given map region at the given zoom level. |
void |
removeTileLayerNewCopyrightHandler(TileLayerNewCopyrightHandler handler)
Removes a single handler of this tile layer previously added with addTileLayerNewCopyrightHandler(TileLayerNewCopyrightHandler) . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final com.google.gwt.core.client.JavaScriptObject jsoPeer
Constructor Detail |
---|
public TileLayer(CopyrightCollection copyrights, int minResolution, int maxResolution)
copyrights
- copyrights to use for copyright handlingminResolution
- minimum zoom level to use for this tile layermaxResolution
- maximum zoom level to use for this tile layerprotected TileLayer(com.google.gwt.core.client.JavaScriptObject jsoPeer)
jsoPeer
- object to wrap.Method Detail |
---|
public static TileLayer createPeer(com.google.gwt.core.client.JavaScriptObject jsoPeer)
public void addTileLayerNewCopyrightHandler(TileLayerNewCopyrightHandler handler)
handler
- handler to invoke on mouse click events.public int getMaxResolution()
public int getMinResolution()
@Exported public abstract double getOpacity()
@Exported @FieldName(value="getTileUrl") public abstract java.lang.String getTileURL(Point tile, int zoomLevel)
tile
- index of tile to compute URL forzoomLevel
- zoom level to compute URL for
@Exported public abstract boolean isPng()
public void removeTileLayerNewCopyrightHandler(TileLayerNewCopyrightHandler handler)
addTileLayerNewCopyrightHandler(TileLayerNewCopyrightHandler)
.
handler
- the handler to remove
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |