Class: ShapeFactory

ol.supermap.Feature.ShapeFactory

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

new ol.supermap.Feature.ShapeFactory()

ShapeFactory.js, line 20

API Relations

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

Methods

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

ShapeFactory.js, line 40

Create an object of shape factory.

Name Type Description
shapeParameters Object

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

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