Variable EntityFactoryConst
EntityFactory: {
PointLabelEntity(p, text): any;
buildLabel(position, text): any;
buildLabelByDegrees(position, text, pro?): Entity;
createHeightEllipse(positions): any;
createLightingLine(positions): any;
createLightingPolygon(positions): any;
createPoint(position): Entity;
createRedPoint(position): any;
polygonCenterLabel(geoJson, type?): Promise<Entity>;
spaceDistanceLabel(startPoint, endPoint): Entity;
} = ...
Type declaration
PointLabelEntity:function
- PointLabelEntity(p, text): any
Parameters
- p: Cartesian3
- text: string | CallbackProperty
Returns any
buildLabel:function
- buildLabel(position, text): any
Parameters
- position: Cartesian3
- text: string
Returns any
buildLabelByDegrees:function
- buildLabelByDegrees(position, text, pro?): Entity
Parameters
- position: WorldDegree
- text: string
- pro: {} = {}
Returns Entity
createHeightEllipse:function
- createHeightEllipse(positions): any
Returns any
createLightingLine:function
- createLightingLine(positions): any
Returns any
createLightingPolygon:function
- createLightingPolygon(positions): any
Returns any
createPoint:function
- createPoint(position): Entity
Returns Entity
createRedPoint:function
- createRedPoint(position): any
Returns any
polygonCenterLabel:function
- polygonCenterLabel(geoJson, type?): Promise<Entity>
Parameters
- geoJson: GeoJSON
- type: string = '周长'
Returns Promise<Entity>
spaceDistanceLabel:function
- spaceDistanceLabel(startPoint, endPoint): Entity
Parameters
- startPoint: Cartesian3
- endPoint: Cartesian3
Returns Entity
创建带标注的点