GKeyboardHandler [class]-GoogleMaps/API/doc/ClassReference/16-GKeyboardHandler-N☆E 学習帳

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

Counter: 3015, today: 2, yesterday: 2

GKeyboardHandler [class]

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

Version 2 (2006.4) 新規

Instantiate this class to add keyboard bindings to a map. The key bindings are the same as for the maps application.

key action up, down, left, right Moves the map continuously while the key is pressed. Two keys can be pressed simultaneously in order to move diagonally. page down, page up, home, end Pans the map by 3/4 its size in the corresponding direction, with a nice animation. This corresponds to the arrow buttons in the GLargeMapControl and the GSmallMapControl. +, - Zooms one level in or out, respectively. This corresponds to the + and - buttons in the GLargeMapControl and the GSmallMapControl.

Constructor

Constructor Description
GKeyboardHandler(map) Installs keyboard event handler for the map passed as argument.

 
new GKeyboardHandler(map);
この一行を追加
(テストサンプル)http://never-ever.info/googlemaps/ve­r2/c_over2.html
←↑→↓矢印キーでパン、+−でズーム、page up, page downで3/4スクロールします。
上記サンプルは前からのサンプルに追加しているのでいろいろ出るけど気にしないでください