OpenLayers.Handler.Polygonクラス

下記のクラスから継承


マップ上でポリゴンを描画するハンドラーです。 mouse downでパスを表示して、mouse downで移動して、mouse upで完了します。

コンストラクター


OpenLayers.Handler.Polygon

ポリゴンハンドラーを新規作成します。
パラメータ

  • control {OpenLayers.Control} このハンドラーを利用しているコントロール。
  • callbacks {Object} An object with a ‘done’ property whos value is a function to be called when the path drawing is finished. The callback should expect to recieve a single argument, the polygon geometry. If the callbacks object contains a ‘point’ property, this function will be sent each point as they are added. If the callbacks object contains a ‘cancel’ property, this function will be called when the handler is deactivated while drawing. The cancel should expect to receive a geometry.
  • options {Object} プロパティ設定用のオプションオブジェクトです。

                                                                                                                                                                     

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