http://www.google.com/apis/maps/documentation/
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.
Constructor | Description |
---|---|
GTileLayer(copyrights, minResolution, maxResolution) | Constructor arguments can be omitted if instantiated as a prototype. A Subclass constructor must invoke this constructor using call(). |
These methods are called by the map and the map type to which this tile layer is passed. You will need to implement the methods marked abstract when you implement a custom tile layer.
Methods | Return Value | Description |
---|---|---|
minResolution() | Number | Returns to the map type the lowest zoom level of this tile layer. |
maxResolution() | Number | Returns to the map type the highest zoom level of this tile layer. |
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() | Boolean | Abstract. Returns to the map whether the tiles are in PNG image format and hence can be transparent. Otherwise GIF is assumed. |
getOpacity() | Number | Abstract. Returns to the map the opacity with which to display this tile layer. 1.0 is opaque, 0.0 is transparent. |
Events | Arguments | Description |
---|---|---|
newcopyright | copyright | This event is fired when a new copyright is added to the copyright collection of this tile layer. |