Angular controller

controller source

Methods

clearAll (type) -> object

Reset sketch and all measurements to start new drawing

Parameters

NameTypeDescription
type string

type of measure to use, should be "area" or "distance"

Returns

TypeDescription
object

area of polygon with used units

setType (type) -> object

Set type of current measurment

Parameters

NameTypeDescription
type string

type of measure to use, should be "area" or "distance"

Returns

TypeDescription
object

area of polygon with used units