SiteWatch API Help

update

update

Previous topic Next topic  

update

Previous topic Next topic  

A method to update a vector circle configuration in a map location.

 

Parameter

Value

point: a point set object (SWPoint)

-or-

point: a point set array

isn93 map point locations.

radius: integer

Radius of circle from point in meters.

config:

Configuration.

 lineColor: string

Line color of circle.

Hex #ffffff

rgb(0,0,0)

rgba(0,0,0,0.1)

colornames (red, blue)

 fillColor: string

Fill color of circle.

Hex #ffffff

rgb(0,0,0)

rgba(0,0,0,0.1)

colornames (red, blue)

 lineWidth: integer

Width of circle.

 

Example:

var point = { x: 339587, y: 361482 };

 

var newRadius = 50000;

 

var newConf = { lineColor: 'ff0000', fillColor: '#6dd341', lineWidth: 10 };

 

circle.update(point, newRadius, newConf);