new CVectorLayer(MapDocument, Obj)
向量圖層
不能直接呼叫CVectorLayer的建構函式,您應該從已經存在的CMapDocument物件,透過NewVectorLayer新增CVectorLayer
| Name | Type | Description |
|---|---|---|
MapDocument |
CMapDocument | undefined |
地圖文件。 |
Obj |
string | Object | undefined |
圖層設定。 |
Example
var vLayerId = myMapDoc.NewVectorLayer("test");
Extends
Members
-
Alpha
-
圖層透明度
Properties:
Name Type Description Alphanumber 透明度
-
readonlyBoundary
-
圖層範圍
Properties:
Name Type Description BoundaryGeoBoundary 圖層範圍
-
readonlyMaxResolution
-
圖層的最大解析度
Properties:
Name Type Description MaxResolutionnumber 最大解析度
-
readonlyMinResolution
-
圖層的最小解析度
Properties:
Name Type Description MinResolutionnumber 最小解析度
-
readonlyName
-
圖層名稱
Properties:
Name Type Description Namenumber 名稱
-
Show
-
是否顯示圖層
Properties:
Name Type Description Showboolean 是否顯示
-
readonlytype
-
圖層類別
Properties:
Name Type Description typeLAYER_TYPE_2D 類別
-
readonlyZIndex
-
圖層Z-Index
Properties:
Name Type Description Z-Indexnumber 圖層的繪製順序
Methods
-
GetAllEntity(){Array.<number>}
openlayers/MapDocument.js, line 3098 -
取得圖層上所有圖素的Id
Returns:
Type Description Array.<number> 圖素Id陣列 -
GetEntityGeo(id){GeoPoint|GeoPolyline|GeoPolygon}
openlayers/MapDocument.js, line 3212 -
取得指定圖素的幾何
Name Type Description idnumber 指定圖素Id
Returns:
Type Description GeoPoint | GeoPolyline | GeoPolygon 圖素幾何,若id沒有找到指定的圖素則回傳為null -
GetEntityParam(id){CVectorLayer.PointEntityParameter|CVectorLayer.PolylineEntityParameter|CVectorLayer.PolygonEntityParameter|CVectorLayer.PolygonSetEntityParameter|CVectorLayer.TextEntityParameter}
openlayers/MapDocument.js, line 2929 -
取得指定圖素的參數
Name Type Description idnumber 指定圖素id
Returns:
Type Description CVectorLayer.PointEntityParameter | CVectorLayer.PolylineEntityParameter | CVectorLayer.PolygonEntityParameter | CVectorLayer.PolygonSetEntityParameter | CVectorLayer.TextEntityParameter 傳回圖素設定的參數。
Point種類:CVectorLayer.PointEntityParameter。
Polyline種類:CVectorLayer.PolylineEntityParameter。
Polygon種類:CVectorLayer.PolygonEntityParameter。
PolygonSet種類:CVectorLayer.PolygonSetEntityParameter。
Text種類:CVectorLayer.TextEntityParameter。 -
GetEntityType(id){ENTITY_TYPE}
openlayers/MapDocument.js, line 3198 -
取得指定圖素的類型
Name Type Description idnumber 指定圖素Id
Returns:
Type Description ENTITY_TYPE 圖素類型,若id沒有找到指定的圖素則回傳為ENTITY_TYPE.NONE(=0) -
NewBatchFeatures(features)
openlayers/MapDocument.js, line 2101 -
批次加入圖素
Name Type Description featuresArray.<ol.Feature> 圖素陣列
-
NewBatchPoint(Param, Callback, LaterAddToSource, ReturnType)
openlayers/MapDocument.js, line 1141 -
新增批量點圖素
Name Type Default Description ParamArray.<CVectorLayer.NewBatchPointParameter> 參數
CallbackCVectorLayer.NewBatchPointCallback 回呼函式,function(featureId)
LaterAddToSourceboolean false optional 是否之後手動加入圖素,true則不會將圖素加入圖層,預設為false
ReturnTypestring "" optional 回呼函式傳入型態,"SELF"則傳入Feature物件,預設傳入Feature ID
Example
//可以設定參數有:Point, FillColor, Radius, RadiusUnit, SymbolUrl, SymbolSize, SymbolRotation(弧度), TextStyle, Tooltip。
//如果有需要文字標籤,先建立文字樣式物件
var text = new CTextStyle();
text.Text = "jgoah-ih;fjaghaihf-kajsnvoahgihufkjakhgqaihf";
text.ContentStyle = 'Shorten';
text.Weight = 'bold';
text.FillColor = 'yellow'
text.Baseline = 'middle';
text.StrokeColor = 'rgba(0,0,0,0.5)';
text.StrokeWidth = 3;
text.Rotation = 1.57;
text.Size = 12;
var callback = function(featureId){};
//新增圓點
this.VectorLayer.NewBatchPoint([{ 'Point': new GeoPoint(163887.80, 2600000), 'FillColor': 'argb(0,0,0,1)', 'Radius': 1000, 'RadiusUnit': UNIT.MAP, 'TextStyle': text },...], callback);
//新增符號
this.VectorLayer.NewBatchPoint([{ 'Point': new GeoPoint(165000, 2650000), 'SymbolUrl': 'http://127.0.0.1:8080/台灣全圖_84TM2.jpg', 'SymbolSize': new CSize(48, 48), 'TextStyle': text },...], callback); -
NewPoint(Obj){number|ol.Feature}
openlayers/MapDocument.js, line 986 -
新增點,若要大量新增則請使用NewBatchPoint
Name Type Description Objobject 圖素設定參數
Name Type Description PointGeoPoint 點座標。
FillColorstring | CanvasPattern | CanvasGradient optional 顏色。
Radiusnumber optional 半徑。
RadiusUnitUNIT optional 作畫單位。
SymbolUrlstring optional 圖片來源。
SymbolSizeCSize optional 圖片大小。
SymbolRotationnumber optional 圖片旋轉角度(弧度)。
TextStyleCTextStyle optional 文字樣式。
Tooltipstring optional 提示文字。
LaterAddToSourceboolean optional 是否稍後再加入。
ReturnType"SELF" optional 回傳型態,"SELF"為ol.Feature。
Returns:
Type Description number | ol.Feature 傳回圖素ID(預設)或圖素本身 Example
//可以設定參數有:Point, FillColor, Radius, RadiusUnit, SymbolUrl, SymbolSize, SymbolRotation(弧度), TextStyle, Tooltip, LaterAddToSource, ReturnType。
//如果有需要文字標籤,先建立文字樣式物件
var text = new CTextStyle();
text.Text = "jgoah-ih;fjaghaihf-kajsnvoahgihufkjakhgqaihf";
text.ContentStyle = 'Shorten';
text.Weight = 'bold';
text.FillColor = 'yellow'
text.Baseline = 'middle';
text.StrokeColor = 'rgba(0,0,0,0.5)';
text.StrokeWidth = 3;
text.Rotation = 1.57;
text.Size = 12;
//新增圓點
this.VectorLayer.NewPoint({ 'Point': new GeoPoint(163887.80, 2600000), 'FillColor': 'argb(0,0,0,1)', 'Radius': 1000, 'RadiusUnit': UNIT.MAP, 'TextStyle': text });
//新增符號
this.VectorLayer.NewPoint({ 'Point': new GeoPoint(165000, 2650000), 'SymbolUrl': 'http://127.0.0.1:8080/台灣全圖_84TM2.jpg', 'SymbolSize': new CSize(48, 48), 'TextStyle': text });
//回傳型態
this.VectorLayer.NewPoint({ ..., ReturnType: 'SELF' }); 則回傳Feature物件,預設回傳Feature ID。 -
NewPoint_Color(p, color, radius, unit, textStyle){number}
openlayers/MapDocument.js, line 850 -
Name Type Description pGeoPoint 點中心位置
colorstring 顏色
radiusnumber 圓半徑
unitUNIT optional 圖素大小單位 UNIT.MAP:半徑以公尺為單位, UNIT.PIXEL:半徑以螢幕上的像素為單位,不給預設為UNIT.PIXEL
textStyleCTextStyle optional 標籤樣式,沒指定就不顯示標籤
- Deprecated
- 新增點圖素(圓形顏色)
Returns:
Type Description number 傳回圖素ID Example
var id = CVectorLayer.NewPoint_Color(new GeoPoint(), '#FFFFFF', 10, UNIT.PIXEL);
var id = CVectorLayer.NewPoint_Color(new GeoPoint(), 'rgb(0,0,0)', 10000, UNIT.MAP);
var id = CVectorLayer.NewPoint_Color(new GeoPoint(), 'rgb(0,0,0)', 10, UNIT.PIXEL, text); -
NewPoint_Symbol(p, SymbolUrl, size, textStyle){number}
openlayers/MapDocument.js, line 906 -
Name Type Description pGeoPoint 點中心位置
SymbolUrlstring 符號圖片的連結
sizeCSize optional 符號大小,沒給則用符號圖片本身的大小
textStyleCTextStyle optional 標籤樣式,沒指定就不顯示標籤
- Deprecated
- 新增點-符號圖素
Returns:
Type Description number 傳回圖素ID Example
var id = CVectorLayer.NewPoint_Symbol(new GeoPoint(), 'http://127.0.0.1:8080/Position48.png', new CSize(128,128), text );
var id = CVectorLayer.NewPoint_Symbol(new GeoPoint(), 'http://127.0.0.1:8080/Position48.png'); -
NewPolygon(Polygon, StrokeColor, StrokeWidth, FillColor, textStyle){number|ol.Feature}
openlayers/MapDocument.js, line 1473 -
新增面圖素
Name Type Description PolygonGeoPolygon | object 圖素設定參數
StrokeColorstring 外框顏色
StrokeWidthnumber 外框寬度
FillColorstring 塗滿顏色
textStyleCTextStyle optional 標籤樣式,沒指定就不顯示標籤
Returns:
Type Description number | ol.Feature 傳回圖素ID(預設)或圖素本身 Example
var id = CVectorLayer.NewPolygon(new GeoPolygon(buffer), '#FFFFFF', 5, 'rgb(255,0,0)' );
var id = CVectorLayer.NewPolygon(new GeoPolygon(buffer), '#FFFFFF', 5, 'rgb(255,0,0)', new CTextStyle()); //使用預設的文字樣式 -
NewPolygonByParam(Obj){number|ol.Feature}
openlayers/MapDocument.js, line 1565 -
新增面圖素
Name Type Description Objobject 圖素設定參數。
Name Type Description PolygonGeoPolygon 面幾何。
StrokeColorstring | CanvasPattern | CanvasGradient optional 邊線顏色。
StrokeWidthnumber optional 邊線寬。
FillColorstring | CanvasPattern | CanvasGradient optional 面顏色。
TextStyleCTextStyle optional 文字樣式。
Tooltipstring optional 提示文字。
LaterAddToSourceboolean optional 是否稍後再加入。
LineDashArray.<number> | boolean optional 虛線間隔或開啟虛線。
ReturnType"SELF" optional 回傳型態,"SELF"為ol.Feature。
Returns:
Type Description number | ol.Feature 傳回圖素ID(預設)或圖素本身 Example
//可以設定參數有:Polygon, StrokeColor, StrokeWidth, FillColor, TextStyle,Tooltip, LaterAddToSource, LineDash, ReturnType。
//如果有需要文字標籤,先建立文字樣式物件
var text = new CTextStyle();
text.Text = "jgoah-ih;fjaghaihf-kajsnvoahgihufkjakhgqaihf";
text.ContentStyle = 'Shorten';
text.Weight = 'bold';
text.FillColor = 'yellow'
text.Baseline = 'middle';
text.StrokeColor = 'rgba(0,0,0,0.5)';
text.StrokeWidth = 3;
text.Rotation = 1.57;
text.Size = 12;
//新增面圖素
this.VectorLayer.NewPolygonByParam({ 'Polygon': new GeoPolygon(buffer) , 'StrokeColor': '#FFFFFF', 'StrokeWidth': 5, 'FillColor': 'rgba(255,0,0,0.5)', 'TextStyle': text, 'LineDash' : [4,8]}); -
NewPolygonSet(PolygonSet, StrokeColor, StrokeWidth, FillColor, TextStyle, NullInside){number|ol.Feature}
openlayers/MapDocument.js, line 1630 -
新增多面圖素
Name Type Description PolygonSetGeoPolygonSet 多面圖素
StrokeColorstring 外框顏色
StrokeWidthnumber 外框寬度
FillColorstring 塗滿顏色
TextStyleCTextStyle optional 標籤樣式,沒指定就不顯示標籤
NullInsideboolean optional 是否要空心,預設為true
Returns:
Type Description number | ol.Feature 傳回圖素ID(預設)或圖素本身 Example
var id = CVectorLayer.NewPolygonSet(new GeoPolygonSet(buffer), '#FFFFFF', 5, 'rgb(255,0,0)' );
var id = CVectorLayer.NewPolygonSet(new GeoPolygonSet(buffer), '#FFFFFF', 5, 'rgb(255,0,0)', '' , true); 不顯示標籤
var id = CVectorLayer.NewPolygonSet(new GeoPolygonSet(buffer), '#FFFFFF', 5, 'rgb(255,0,0)', text, true);顯示標籤 -
NewPolygonSetByParam(Obj){number|ol.Feature}
openlayers/MapDocument.js, line 1764 -
新增多面圖素
Name Type Description ObjObject 圖素設定參數。
Name Type Description PolygonSetGeoPolygonSet 多面幾何。
StrokeColorstring | CanvasPattern | CanvasGradient optional 邊線顏色。
StrokeWidthnumber optional 邊線寬。
FillColorstring | CanvasPattern | CanvasGradient optional 面顏色。
TextStyleCTextStyle optional 文字樣式。
NullInsideboolean optional 是否不畫面。
Tooltipstring optional 提示文字。
LaterAddToSourceboolean optional 是否稍後再加入。
LineDashArray.<number> | boolean optional 虛線間隔或開啟虛線。
ReturnType"SELF" optional 回傳型態,"SELF"為ol.Feature。
Returns:
Type Description number | ol.Feature 傳回圖素ID(預設)或圖素本身 Example
//可以設定參數有:PolygonSet, StrokeColor, StrokeWidth, FillColor, TextStyle, NullInside, Tooltip, LaterAddToSource, LineDash, ReturnType。
//如果有需要文字標籤,先建立文字樣式物件
var text = new CTextStyle();
text.Text = "jgoah-ih;fjaghaihf-kajsnvoahgihufkjakhgqaihf";
text.ContentStyle = 'Shorten';
text.Weight = 'bold';
text.FillColor = 'yellow'
text.Baseline = 'middle';
text.StrokeColor = 'rgba(0,0,0,0.5)';
text.StrokeWidth = 3;
text.Rotation = 1.57;
text.Size = 12;
//新增線圖素
this.VectorLayer.NewPolygonSetByParam({ 'PolygonSet': pgs2 , 'StrokeColor': '#FF00FF', 'StrokeWidth': 5, 'FillColor': 'rgb(255,0,0)', 'TextStyle': text, 'NullInside': true, 'LineDash' : [4,8]}); -
NewPolyline(Polyline, Color, Width, textStyle){number|ol.Feature}
openlayers/MapDocument.js, line 1290 -
新增聚合線圖素
Name Type Description PolylineGeoPolyline | Object 線條
Colorstring 線條顏色
Widthnumber 線條寬度
textStyleCTextStyle optional 標籤樣式,沒指定就不顯示標籤
Returns:
Type Description number | ol.Feature 傳回圖素ID(預設)或圖素本身 Example
var id = CVectorLayer.NewPolyline(new GeoPolyline(buffer), '#FFFFFF', 5 );
var id = CVectorLayer.NewPolyline(new GeoPolyline(buffer), '#FFFFFF', 5, text); -
NewPolylineByParam(Obj){number|ol.Feature}
openlayers/MapDocument.js, line 1382 -
新增聚合線圖素
Name Type Description Objobject 圖素設定參數
Name Type Description PolylineGeoPolyline 聚合線幾何。
StrokeColorstring | CanvasPattern | CanvasGradient optional 邊線顏色。
StrokeWidthnumber optional 邊線寬。
TextStyleCTextStyle optional 文字樣式。
ShowArrowboolean optional 是否顯示箭頭。
Tooltipstring optional 提示文字。
LaterAddToSourceboolean optional 是否稍後再加入。
LineDashArray.<number> | boolean optional 虛線間隔或開啟虛線。
ReturnType"SELF" optional 回傳型態,"SELF"為ol.Feature。
Returns:
Type Description number | ol.Feature 傳回圖素ID(預設)或圖素本身 Example
//可以設定參數有:Polyline, StrokeColor, StrokeWidth, TextStyle, ShowArrow,Tooltip, LaterAddToSource, LineDash, ReturnType。
//如果有需要文字標籤,先建立文字樣式物件
var text = new CTextStyle();
text.Text = "jgoah-ih;fjaghaihf-kajsnvoahgihufkjakhgqaihf";
text.ContentStyle = 'Shorten';
text.Weight = 'bold';
text.FillColor = 'yellow'
text.Baseline = 'middle';
text.StrokeColor = 'rgba(0,0,0,0.5)';
text.StrokeWidth = 3;
text.Rotation = 1.57;
text.Size = 12;
//新增線圖素
this.VectorLayer.NewPolylineByParam({ 'Polyline': new GeoPolyline(buffer), 'StrokeColor': 'black', 'StrokeWidth': 5, 'TextStyle': text, 'ShowArrow': true, 'LineDash' : [4,8] }); -
NewText(P, TextStyle, bShowPoint, PointColor, PointRadius, PointUnit){number|ol.Feature}
openlayers/MapDocument.js, line 1882 -
新增文字圖素
Name Type Default Description PGeoPoint 文字坐標(世界)
TextStyleCTextStyle 標籤樣式
bShowPointboolean false optional 是否要顯示圓點,預設false
PointColorstring optional 圓點顏色,不給預設紅色
PointRadiusnumber 1 optional 圓點半徑,不給預設為1
PointUnitUNIT UNIT.PIXEL optional 半徑單位類型,UNIT.MAP:半徑以公尺為單位, UNIT.PIXEL:半徑以螢幕上的像素單位,不給預設為UNIT.PIXEL
Returns:
Type Description number | ol.Feature 傳回圖素ID(預設)或圖素本身 Example
var id = CVectorLayer.NewText(new GeoPoint(5,5), text);
var id = CVectorLayer.NewText(new GeoPoint(5,5), text, false) 不顯示圓點
var id = CVectorLayer.NewText(new GeoPoint(5,5), text, true, '#FF0000', 20, UNIT.PIXEL) 顯示圓點 -
NewTextByParam(Obj){number|ol.Feature}
openlayers/MapDocument.js, line 2014 -
新增文字圖素。
Name Type Description Objobject 圖素設定參數。
Name Type Default Description PointGeoPoint 幾何點。
TextStyleCTextStyle 標籤樣式
ShowPointboolean false optional 是否顯示圓點。
PointFillColorstring | CanvasPattern | CanvasGradient optional 圓點顏色。
PointRadiusnumber optional 圓點半徑。
PointRadiusUnitUNIT optional 圓點半徑單位類型。
Tooltipstring optional 提示文字。
LaterAddToSourceboolean optional 是否稍後再加入。
ReturnType"SELF" optional 回傳型態,"SELF"為ol.Feature。
Returns:
Type Description number | ol.Feature 傳回圖素ID Example
//可以設定參數有:Point, ShowPoint, PointFillColor, PointRadius, PointRadiusUnit, TextStyle, Tooltip, LaterAddToSource,ReturnType。
//先建立文字樣式物件
var text = new CTextStyle();
text.Text = "jgoah-ih;fjaghaihf-kajsnvoahgihufkjakhgqaihf";
text.ContentStyle = 'Shorten';
text.Weight = 'bold';
text.FillColor = 'yellow'
text.Baseline = 'middle';
text.StrokeColor = 'rgba(0,0,0,0.5)';
text.StrokeWidth = 3;
text.Rotation = 1.57;
text.Size = 12;
//新增文字圖素
this.VectorLayer.NewTextByParam({
'Point': new GeoPoint(175000, 2542575.6165581764), 'TextStyle': text, 'ShowPoint': true, 'PointFillColor': '#00FF00', 'PointRadius': 100, 'PointRadiusUnit': UNIT.PIXEL,
'Tooltip': "<td colspan="2">關渡觀測站 HOUR_3 0.00 HOUR_6 -999.00 HOUR_12 -999.00 HOUR_24 -999.00 MIN_10 0.00 NOW 0.00
"
}); -
Remove(id){boolean}
openlayers/MapDocument.js, line 3075 -
移除圖層上指定圖素
Name Type Description idnumber 指定圖素id
Returns:
Type Description boolean 若找不到指定圖素,return false -
RemoveAll()
openlayers/MapDocument.js, line 3089 -
移除圖層上所有圖素
-
SelectEntityAtPoint(Point){Array.<number>}
openlayers/MapDocument.js, line 3142 -
在圖層上搜尋固定範圍(螢幕上5px)內的圖素Id
Name Type Description PointGeoPoint 輸入點(世界坐標)
Returns:
Type Description Array.<number> 圖素Id陣列 -
SelectEntityByDistance(Geo, Distance){Array.<number>}
openlayers/MapDocument.js, line 3113 -
在圖層上搜尋範圍內的圖素Id
Name Type Description GeoGeoPoint | GeoPolyline | GeoPolygon | GeoPolygonSet | GeoBoundary 輸入幾何(世界坐標)
Distancenumber 搜索半徑(單位:公尺)
Returns:
Type Description Array.<number> 圖素Id陣列 -
SelectEntityByInclude(Geo){Array.<number>}
openlayers/MapDocument.js, line 3172 -
在圖層上搜尋指定幾何範圍內的圖素Id
Name Type Description GeoGeoPoint | GeoPolyline | GeoPolygon | GeoPolygonSet | GeoBoundary 輸入幾何(世界坐標)
Returns:
Type Description Array.<number> 圖素Id陣列 -
SetClusterDistance(distance)
openlayers/MapDocument.js, line 3432 -
設定叢集合併的最大距離
Name Type Description distancenumber 叢集合併最大距離
-
SetEntityShow(id, show){boolean}
openlayers/MapDocument.js, line 2169 -
設定是否顯示圖素
Name Type Description idnumber 指定圖素id
showBoolean 是否顯示
Returns:
Type Description boolean 回傳更新是否成功 -
SetTooltip()
openlayers/MapDocument.js, line 3423 -
設定tooltip
-
ToAllEntityArrayJson(){string}
openlayers/MapDocument.js, line 3225 -
把所有圖素轉成Json陣列字串
Returns:
Type Description string Json字串 -
UpdateEntity(id, Obj){boolean}
openlayers/MapDocument.js, line 2131 -
更新與指定圖素相關的參數
點圖素間的轉換,需要給完整資訊,可以參考NewPoint_Color和NewPoint_Symbol(symbol轉color需要指定SymbolUrl為空字串)
不要顯示文字的話Text給空字串或TextStyle.Text給空字串,如果有指定TextStyle,以TextStyle為主Name Type Description idnumber 指定圖素id
ObjCVectorLayer.PointEntityParameter | CVectorLayer.PolylineEntityParameter | CVectorLayer.PolygonEntityParameter | CVectorLayer.PolygonSetEntityParameter | CVectorLayer.TextEntityParameter 需要變更的參數。
Point種類:CVectorLayer.PointEntityParameter。
Polyline種類:CVectorLayer.PolylineEntityParameter。
Polygon種類:CVectorLayer.PolygonEntityParameter。
PolygonSet種類:CVectorLayer.PolygonSetEntityParameter。
Text種類:CVectorLayer.TextEntityParameter。Returns:
Type Description boolean 回傳更新是否成功
Type Definitions
-
CVectorLayer.NewBatchPointCallback(featureId)
openlayers/MapDocument.js, line 1110 -
Name Type Description featureIdol.Feature | number - See:
-
CVectorLayer.NewBatchPointParameterobject
-
Properties:
Name Type Description PointGeoPoint FillColorstring | CanvasPattern | CanvasGradient Radiusnumber RadiusUnitUNIT SymbolUrlstring SymbolSizeCSize SymbolRotationnumber (弧度)
TextStyleCTextStyle Tooltipstring -
CVectorLayer.PointEntityParameterobject
-
點圖素參數。
Properties:
Name Type Description PointGeoPoint 點幾何。
FillColorstring | CanvasPattern | CanvasGradient 點填充顏色。
Radiusnumber 半徑。
RadiusUnitUNIT 半徑作畫單位
SymbolUrlstring 圖片來源。
SymbolSizeCSize 圖片大小。
SymbolScalenumber 圖片比例。
SymbolRotationnumber 圖片旋轉角度(弧度)。
Tooltipstring 提示文字。
TextStyleCTextStyle 文字樣式。
-
CVectorLayer.PolygonEntityParameterobject
-
面圖素參數。
Properties:
Name Type Description PolygonGeoPolygon 面幾何。
StrokeColorstring | CanvasPattern | CanvasGradient 邊線顏色。
StrokeWidthnumber 邊線寬。
FillColorstring | CanvasPattern | CanvasGradient 面填充顏色。
Tooltipstring 提示文字。
TextStyleCTextStyle 文字樣式。
-
CVectorLayer.PolygonSetEntityParameterobject
-
多面圖素參數。
Properties:
Name Type Description PolygonSetGeoPolygonSet 多面幾何。
StrokeColorstring | CanvasPattern | CanvasGradient 邊線顏色。
StrokeWidthnumber 邊線寬。
FillColorstring | CanvasPattern | CanvasGradient 面填充顏色。
NullInsideboolean 是否要空心。
Tooltipstring 提示文字。
TextStyleCTextStyle 文字樣式。
-
CVectorLayer.PolylineEntityParameterobject
-
線圖素參數。
Properties:
Name Type Description PolylineGeoPolyline 線幾何。
StrokeColorstring | CanvasPattern | CanvasGradient 邊線顏色。
StrokeWidthnumber 邊線寬。
ShowArrowboolean 是否顯示箭頭。
Tooltipstring 提示文字。
TextStyleCTextStyle 文字樣式。
-
CVectorLayer.TextEntityParameterobject
-
文字圖素參數。
Properties:
Name Type Description PointGeoPoint 點幾何。
ShowPointboolean 是否顯示點。
PointRadiusnumber 圓點半徑。
PointRadiusUnitUNIT 圓點半徑單位類型。
Tooltipstring 提示文字。
TextStyleCTextStyle 文字樣式。