OpenLayers.Feature.Vectorクラス
下記のクラスから継承
OpenLayers.Geometryクラスを利用図形を定義するベクトルフィーチャーです。 このクラスは属性データ格納する‘attributes’プロパティとスタイル定義する‘style’プロパティが持っています。
|
Table of Contents
|
プロパティ
geometry
{OpenLayers.Geometry} フィーチャーの図形情報。
attributes
{Object} フィーチャーの属性情報。
insert the code here
style
{Object} スタイルオブジェクト。
コンストラクター
OpenLayers.Feature.Vector
引数
- geometry {OpenLayers.Geometry} フィーチャーの図形情報。
- attributes {Object} フィーチャーの属性情報。
- style {Object} スタイルオブジェクト。
定数
OpenLayers.Feature.Vector.style
OpenLayersフィーチャーには、いくつかのスタイルプロパティが持つことができます。他のスタイルも指定されないならば、‘default’スタイルが一般的に使われます。
ディフォルトスタイルプロパティ
fillColor: “#ee9900”, fillOpacity: 0.4, hoverFillColor: “white”, hoverFillOpacity: 0.8, strokeColor: “#ee9900”, strokeOpacity: 1, strokeWidth: 1, strokeLinecap: “round”, hoverStrokeColor: “red”, hoverStrokeOpacity: 1, hoverStrokeWidth: 0.2, pointRadius: 6, hoverPointRadius: 1, hoverPointUnit: “%”, pointerEvents: “visiblePainted” cursor: “”
ディフォルトではないその他のスタイルプロパティ
externalGraphic,
graphicWidth,
graphicHeight,
graphicOpacity
graphicXOffset
graphicYOffset
display
Add a New Comment
page revision: 2, last edited: 02 May 2008 06:52





