<< Click to Display Table of Contents >>
new sg.symbols.PictureFillSymbol(url, outline, width, height)
Description
create a new PictureFillSymbol object.
Position
Symbol.js
Parameters
Parameter |
Type |
Description |
url |
String |
URL to the picture |
outline |
sg.symbols.LineSymbol |
symbol outline |
width |
Number |
picture width |
height |
Number |
picture height |
Properties
Properties |
Type |
Description |
type |
String |
definition of the symbol type. |
width |
Number |
definition of the symbol width. |
height |
Number |
image height in pixels. |
url |
String |
image URL |
xscale |
Number |
definition of x scale factor. |
yscale |
Number |
definition of y scale factor. |
color |
sg.Color |
symbol color |
outline |
sg.symbols.LineSymbol |
symbol outline |
Methods
Methods |
Type |
Description |
|||||||||
setColor(color) |
sg.Color |
define symbol color.
|
|||||||||
setHeight(height) |
Number |
define symbol height.
|
|||||||||
setOffset(x, y) |
Number |
define symbol offset in x and y direction.
|
|||||||||
setOutline(outline) |
sg.symbols.LineSymbol |
define symbol outline.
|
|||||||||
setUrl(url) |
String |
define image URL.
|
|||||||||
setWidth(width) |
Number |
define symbol width.
|
|||||||||
setXScale(scale) |
Number |
define x scale factor.
|
|||||||||
setYScale(scale) |
Number |
define y scale factor.
|
Example
|
©2015 Supergeo Technologies Inc.