<< Click to Display Table of Contents >>
new sg.symbols.PictureFillSymbol(url, outline, width, height)
Description
建立一個具有參數的PictureFillSymbol (圖片填充符號)物件。
Position
Symbol.js
Parameters
Parameter |
Type |
Description |
url |
String |
圖片的URL連結 |
outline |
sg.symbols.LineSymbol |
符號外框 |
width |
Number |
圖片寬度 |
height |
Number |
圖片高度 |
Properties
Properties |
Type |
Description |
type |
String |
符號類型定義。 |
width |
Number |
圖片寬度,單位為Pixel。 |
height |
Number |
圖片高度,單位為Pixel。 |
url |
String |
圖片URL。 |
xscale |
Number |
x 比例尺倍數。 |
yscale |
Number |
y 比例尺倍數。 |
color |
sg.Color |
符號的顏色。 |
outline |
sg.symbols.LineSymbol |
填充符號的外框。 |
Methods
Methods |
Type |
Description |
|||||||||
setColor(color) |
sg.Color |
設定填充符號的顏色。
|
|||||||||
setHeight(height) |
Number |
設定填充符號高度。
|
|||||||||
setOffset(x, y) |
Number |
設定x 與y 方向偏移量。
|
|||||||||
setOutline(outline) |
sg.symbols.LineSymbol |
設定填充符號邊框。
|
|||||||||
setUrl(url) |
String |
設定圖片URL。
|
|||||||||
setWidth(width) |
Number |
設定填充符號寬度。
|
|||||||||
setXScale(scale) |
Number |
設定圖片x方向縮放比例。
|
|||||||||
setYScale(scale) |
Number |
設定圖片y方向縮放比例。
|
©2015 Supergeo Technologies Inc.