Class DivLayer

Hierarchy

  • baseLayer
    • DivLayer

Constructors

  • Parameters

    • layerid: string
    • Optional options: IGraphicLayerOption

    Returns DivLayer

Properties

DivGraphicList: DivGraphic[]
EventType: EventType
_map: Map
contextmenu: any
contextmenuitems: any
handlers: {}

容器

Type declaration

    layer: any
    layerSource: any
    layerclass: string
    layerid: string
    layertype: string
    option: ILayerOption

    Accessors

    • get isAdded(): boolean
    • Returns boolean

    • set isAdded(isadded): void
    • Parameters

      • isadded: boolean

      Returns void

    • get show(): boolean
    • Returns boolean

    • set show(visible): void
    • Parameters

      • visible: boolean

      Returns void

    Methods

    • 转换坐标到3857坐标

      Parameters

      • wkid: string

        输入的网址.

      • Coordinates: number[]

        文件类型.

      Returns number[]

      返回json格式数据.

    • Parameters

      • wkid: string
      • Coordinates: any

      Returns any

    • Parameters

      • type: string | number
      • fn: any

      Returns DivLayer

    • Parameters

      Returns void

    • Parameters

      • map: any

      Returns void

    • 将十六进制的颜色值转为RGB格式

      Parameters

      • sHex: string

        十六进制的颜色值.

      • alpha: string

        透明度.

      Returns string

      rgba(r,g,b,a).

    • Parameters

      • Optional opt_options: FitOptions

      Returns void

    • Parameters

      • GeoJson: any

      Returns any

    • Parameters

      • GeoJson: any

      Returns FeatureCollection<Geometry, {
          [name: string]: any;
      }>

    • Parameters

      • GeoJson: any

      Returns any

    • 获取文件

      Parameters

      • url: string | URL

        输入的网址.

      • contenttype: string

        文件类型.

      Returns any

      返回json格式数据.

    • 获取json.

      Parameters

      • urlstr: string

        输入的网址.

      Returns any

      返回json格式数据.

    • Parameters

      • menuitems: any

      Returns void

    • Parameters

      • type: string | number
      • fn: any

      Returns DivLayer

    • 绑定一个只执行一次的事件

      Parameters

      • type: string | number

        事件类型

      • fn: Function

        事件处理函数

      • scope: any

        要为事件处理函数绑定的执行上下文

      Returns any

      当前实例对象

    • Returns void

    • Parameters

      Returns void

    • Parameters

      • zindex: any

      Returns void

    • Parameters

      • eName: string | number | symbol
      • params: any

      Returns void

    Generated using TypeDoc