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
    • 创建带标注的点

      Parameters

      • p: Cartesian3
      • text: string | CallbackProperty

      Returns any

  • buildLabel:function
    • 创建标注

      Parameters

      • position: Cartesian3
      • text: string

      Returns any

  • buildLabelByDegrees:function
    • 绘制空间距离线

      Parameters

      • position: WorldDegree
      • text: string
      • pro: {} = {}

        Returns Entity

    • createHeightEllipse:function
      • 带高圆面

        Parameters

        • positions: Cartesian3[]

        Returns any

    • createLightingLine:function
      • 创建发光线

        Parameters

        • positions: Cartesian3[]

        Returns any

    • createLightingPolygon:function
      • 创建发光面

        Parameters

        • positions: Cartesian3[]

        Returns any

    • createPoint:function
      • 创建一个普通点

        Parameters

        • position: Cartesian3

        Returns Entity

    • createRedPoint:function
      • 创建一个:白边红心,明显的点(不贴地)

        Parameters

        • position: Cartesian3

        Returns any

    • polygonCenterLabel:function
      • 绘制多边形上的标注,面积、周长的数值

        Parameters

        • geoJson: GeoJSON
        • type: string = '周长'

        Returns Promise<Entity>

    • spaceDistanceLabel:function
      • 绘制空间距离线上的标注

        Parameters

        • startPoint: Cartesian3
        • endPoint: Cartesian3

        Returns Entity