Class: ShapeFactory

L.supermap.Feature.ShapeFactory

Shape factory class. Currently, we support creating the following shapes::
Graph thematic map:
Point - parameter object: <L.supermap.Feature.ShapeParameters.Point>
Line - parameter object: <L.supermap.Feature.ShapeParameters.Line>
Polygon - parameter object: <L.supermap.Feature.ShapeParameters.Polygon>
Rectangle - parameter object: <L.supermap.Feature.ShapeParameters.Rectangle>
Sector - parameter object: <L.supermap.Feature.ShapeParameters.Sector>
Label - parameter object: <L.supermap.Feature.ShapeParameters.Label>
Image - parameter object: <L.supermap.Feature.ShapeParameters.Image>
Symbol thematic map:
Circle - parameter object: <L.supermap.Feature.ShapeParameters.Cilcle>

new L.supermap.Feature.ShapeFactory()

ShapeFactory.js, line 20

API Relations

As method parameter: L.supermap.Feature.ShapeParameters.Circle.Background , L.supermap.Feature.ShapeParameters.Circle.GraphAxis , L.supermap.Feature.ShapeParameters.Image.Background , L.supermap.Feature.ShapeParameters.Image.GraphAxis , L.supermap.Feature.ShapeParameters.Line.Background , L.supermap.Feature.ShapeParameters.Line.GraphAxis , L.supermap.Feature.ShapeParameters.Point.Background , L.supermap.Feature.ShapeParameters.Point.GraphAxis , L.supermap.Feature.ShapeParameters.Polygon.Background , L.supermap.Feature.ShapeParameters.Polygon.GraphAxis , L.supermap.Feature.ShapeParameters.Rectangle.Background , L.supermap.Feature.ShapeParameters.Rectangle.GraphAxis , L.supermap.Feature.ShapeParameters.Sector.Background , L.supermap.Feature.ShapeParameters.Sector.GraphAxis , L.supermap.Feature.ShapeParameters.Background , L.supermap.Feature.ShapeParameters.GraphAxis.
Returned by: L.supermap.Feature.ShapeFactory.constructor.

Methods

constructor(shapeParameters){L.supermap.Feature.ShapeFactory}

ShapeFactory.js, line 40

Create an object of shape factory.

Name Type Description
shapeParameters Object

Shape parameter object,<L.supermap.Feature.ShapeParameters> child class object. Optional.

Returns:
Type Description
L.supermap.Feature.ShapeFactory Returns the graphics factory class object.