SiteWatch API Help

scale

scale

Previous topic Next topic  

scale

Previous topic Next topic  

A method to multiply SWPoints to a number.

 

Parameter

Value

point: a point set object (SWPoint)

isn93 map point locations.

scale: integer

Scale in pixels.

 

Return

Value

object:

A point set object (SWPoint).

 

Example:

var pointToScale = SWPoint.create(359583, 406481);

 

var pointScaled = SWPoint.subtract(pointToScale, 5);