GTileLayer [interface]-GoogleMaps/API/doc/ClassReference/29-GTileLayer-N☆E 学習帳

[ リロード ]   [ ソース ]  [ トップ | 一覧 | 単語検索 | 最新 | バックアップ | ヘルプ ]

Counter: 3065, today: 2, yesterday: 1

GTileLayer [interface]

http://www.google.com/apis/maps/docu­mentation/

Version 2 (2006.4) 新規

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

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().

 

Methods

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

Events Arguments Description
newcopyright copyright This event is fired when a new copyright is added to the copyright collection of this tile layer.