Class: IWShape

IWShape

A shape file which can be displayed in the map.

new IWShape(shapeName, range)

Creates a new shape.
Parameters:
Name Type Description
shapeName String
range IWRange a range of zoom levels the shape is displayed at, defaults to all zoom levels
Since:
  • 0.70

Methods


getRange()

Returns the visible range of this shape.
Returns:
range
Type
IWRange

getShapeName()

Returns the name of the shape.
Returns:
Type
String

setRange(range)

Sets the visibility range of this shape.
Parameters:
Name Type Description
range IWRange the new range
Returns:
Type
void

setShapeName(shapeName)

Sets the name of the shape.
Parameters:
Name Type Description
shapeName String the name of the shape file
Returns:
Type
void

toString()

Returns a string representation of this shape.
Returns:
Type
String