com.mapitz.gwt.googleMaps.client
Class GTileLayer

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

public abstract class GTileLayer
extends com.google.gwt.core.client.JavaScriptObject

You implement this interface in order to provide custom map tile layers. Your implementation of this interface should use an instance of GTileLayer as a prototype, because this implements the copyright handling for you.

Author:
aglaforge

Constructor Summary
GTileLayer(int opaque)
           
 
Method Summary
static GTileLayer create(GCopyrightCollection copyrights, int minResolution, int maxResolution)
          GTileLayer(copyrights, minResolution, maxResolution) Constructor arguments can be omitted if instantiated as a prototype.
 double getOpacity()
          getOpacity() Number Abstract.
 java.lang.String getTileUrl(GPoint tile, int zoom)
          getTileUrl(tile, zoom) String Abstract.
 boolean isPng()
          isPng() Boolean Abstract.
 int maxResolution()
          maxResolution() Number Returns to the map type the highest zoom level of this tile layer.
 int minResolution()
          minResolution() Number Returns to the map type the lowest zoom level of this tile layer.
 
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
 

Constructor Detail

GTileLayer

public GTileLayer(int opaque)
Method Detail

create

public static GTileLayer create(GCopyrightCollection copyrights,
                                int minResolution,
                                int maxResolution)
GTileLayer(copyrights, minResolution, maxResolution) Constructor arguments can be omitted if instantiated as a prototype. A Subclass constructor must invoke this constructor using call().


minResolution

public int minResolution()
minResolution() Number Returns to the map type the lowest zoom level of this tile layer.


maxResolution

public int maxResolution()
maxResolution() Number Returns to the map type the highest zoom level of this tile layer.


getTileUrl

public java.lang.String getTileUrl(GPoint tile,
                                   int zoom)
getTileUrl(tile, zoom) String Abstract. Returns to the map the URL of the map tile with the tile indices given by the x and y properties of the GPoint, at the given zoom level.


isPng

public boolean isPng()
isPng() Boolean Abstract. Returns to the map whether the tiles are in PNG image format and hence can be transparent. Otherwise GIF is assumed.


getOpacity

public double getOpacity()
getOpacity() Number Abstract. Returns to the map the opacity with which to display this tile layer. 1.0 is opaque, 0.0 is transparent.