今までのサンプルでは位置やズームレベルに関係なく同じ画像ファイルを返していましたが、本来は地図の位置やズームレベル毎に個別の画像を用意します。 作成したタイルレイヤーのgetTileUrlメソッドが呼び出されると、引数としてタイルの位置を表すGPointクラスのオブジェクトとズームレベルを表す数値が渡されてきます。 getTileUrl(tile:GPoint, zoom:Number) 抽象。指定のズーム レベルで GPoint の x と y プロパティで指定されたタイ ル インデックスのあるマップ タイルの URL を地図に返します。 戻り値: String 全てのズームレベルの全ての位置のタイルを用意すれば完璧ですが、なかなかそこまで試すことはできません。そこで指定のズームレベルの指定のタイル位置のタイルだけに特別な画像のURLを返すようにしてみます。 実際には次のように記述します
Loading...If this message does not disappear, please ensure that the document you specified is published... Drag this button: Open in AutoFilter to your bookmarks toolbar to install the bookmarklet. To use it, click the bookmarklet when you're visiting the Spreadsheets document you want to auto-filter.
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く