<< Click to Display Table of Contents >>
new sg.symbols.PictureMarkerSymbol(url, width, height)
Description
create a new PictureMarkerSymbol object
Position
Symbol.js
Parameters
Parameter |
Type |
Description |
url |
String |
URL to the picture |
width |
Number |
picture width |
height |
Number |
picture height |
Properties
Properties |
Type |
Description |
angle |
Number |
The angle of the marker. |
color |
sg.Color |
Symbol color. |
size |
Number |
Size of the image in pixels. |
type |
String |
The type of the symbol. |
url |
String |
URL of the image. |
xoffset |
Number |
The offset on the x-axis in pixels. |
yoffset |
Number |
The offset on the y-axis in pixels. |
Methods
Methods |
Type |
Description |
|||||||||
setColor(color) |
sg.Color |
define symbol color.
|
|||||||||
setOffset(x, y) |
Number |
define symbol offset in x and y direction.
|
|||||||||
setUrl(url) |
String |
define image URL.
|
|||||||||
setAngle(angle) |
Number |
define the rotation angle.
|
|||||||||
setSize(size) |
Number |
define symbol size.
|
|||||||||
setWidth(width) |
Number |
define symbol width.
|
|||||||||
setHeight(height) |
Number |
define symbol height.
|
Example
|
©2015 Supergeo Technologies Inc.