OpenLayers.Control.Buttonクラス

下記のクラスから継承


OpenLayers.Control.Panelを利用する簡易ボタンコントロールです。クリックされた時にtrigger()メソッドを実行されます。

サンプル

var button = new OpenLayers.Control.Button({
    displayClass: "MyButton", trigger: myFunction
});
panel.addControls([button]);

MyButtonItemInactiveというCSSクラスを持つボタンを作成し、クリックされた時にMyFunction()ファンクションを実行されます。

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      

Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License