Areas
Areas
Areas Objects
class Areas()This is a base object that contains all you can do about Areas.
constructor
function constructor()Constructor
Arguments:
ReferenceInternalOpenGateAPI - to the API object.
withColor
function withColor(color: string) -> 'Areas'Set the color attribute
Arguments:
colorstring - required field
Returns:
Areas
withDescription
function withDescription(description: string) -> 'Areas'Set the description attribute
Arguments:
descriptionstring - required field
Returns:
Areas
withEntities
function withEntities(entities: array) -> 'Areas'Set the entities attribute
Arguments:
entitiesarray - required field
Returns:
Areas
withGeometry
function withGeometry(type: string,coordinates: array) -> 'Areas'Set the geometry attribute
Arguments:
typestring - required fieldcoordinatesarray - required field
Returns:
Areas
withIdentifier
function withIdentifier(identifier: string) -> 'Areas'Set the identifier attribute
Arguments:
identifierstring - required field
Returns:
Areas
withName
function withName(name: string) -> 'Areas'Set the name attribute
Arguments:
namestring - required field
Returns:
Areas
withOrder
function withOrder(order: number) -> 'Areas'Set the order attribute
Arguments:
ordernumber - required field
Returns:
Areas
withOrganization
function withOrganization(organization: string) -> 'Areas'Set the organization attribute
Arguments:
organizationstring - required field
Returns:
Areas