Class PathLayer

Hierarchy

  • baseLayer
    • PathLayer

Constructors

  • Parameters

    • layerid: any
    • options: IPathLayerOption

    Returns PathLayer

Properties

EventType: EventType
FeatureMoveProgressInfo: {
    angle: string;
    nextNodeDistance: any;
    nodeNum: any;
    progress: number;
    remainingDistance: number;
    totalDistance: number;
}

Type declaration

  • angle: string
  • nextNodeDistance: any
  • nodeNum: any
  • progress: number
  • remainingDistance: number
  • totalDistance: number
_map: Map
_source: VectorSource<Geometry>
animating: boolean
autoPointSize: boolean
contextmenu: any
contextmenuitems: any
dijkstra: default
distance: number
geoMarker: Feature<any>
geoMarkerCircle: Feature<any>
handlers: {}

容器

Type declaration

    lastAngle: number
    lastTime: any
    layer: any
    layerSource: any
    layerclass: string
    layerid: string
    layertype: string
    moveNodeInfo: any
    multiLinePathData: Feature<Geometry>
    nodesLayer: VectorLayer<any>
    oldPathLineFeature: Feature<LineString>
    option: IPathLayerOption
    pathDatalayer: VectorLayer<any>
    pathIndex: number
    pathLine: LineString
    pathLineFeature: Feature<Geometry>
    pathNodeInfo: any
    position: any
    result: VectorSource<Geometry>
    resultSource: VectorSource<Geometry>
    resultlayer: VectorLayer<any>
    routeFeatures: Feature<Geometry>[]
    styles: {
        geoMarker: Style;
        icon: Style;
        route: Style;
    }

    Type declaration

    • geoMarker: Style
    • icon: Style
    • route: Style
    timer: Timer
    vueThis: PathLayer

    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

    • Returns "直行" | "右" | "左"

    • 转换坐标到3857坐标

      Parameters

      • wkid: string

        输入的网址.

      • Coordinates: number[]

        文件类型.

      Returns number[]

      返回json格式数据.

    • Parameters

      • wkid: string
      • Coordinates: any

      Returns any

    • Parameters

      • type: string | number
      • fn: any

      Returns PathLayer

    • Parameters

      • classname: any
      • feature: any

      Returns void

    • Parameters

      • classname: any
      • featuresList: any

      Returns void

    • : 添加GeoJSON数据,需要数据库样式匹配

      Parameters

      • classname: string

        图层编号

      • GeoJson: any

        标准GeoJson格式

      Returns void

    • : 添加GeoJSON数据,需要数据库样式匹配

      Parameters

      • classname: string

        图层编号

      • url: string | URL

        json地址

      Returns void

    • 添加导航mark,仅能存在一个

      Returns void

    • Parameters

      • map: any

      Returns void

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

      Parameters

      • sHex: string

        十六进制的颜色值.

      • alpha: string

        透明度.

      Returns string

      rgba(r,g,b,a).

    • :计算导航路径

      Parameters

      • startCoordinate: Coordinate | Feature<Point>

        startCoordinate

      • endPointCoordinate: Coordinate | Feature<Point>

        标准GeoJson格式

      Returns void

    • Parameters

      • startCoordinate: any
      • endPointCoordinate: any

      Returns void

    • Parameters

      • GeoJson: any

      Returns any

    • 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

      • e: any

      Returns void

    • Parameters

      • name: any

      Returns any

    • Parameters

      • name: string

      Returns any

    • 按classname返回要素

      Parameters

      • classname: string

        分类名

      Returns Feature<Geometry>[]

      返回要素数组

    • 获取文件

      Parameters

      • url: string | URL

        输入的网址.

      • contenttype: string

        文件类型.

      Returns any

      返回json格式数据.

    • 获取json.

      Parameters

      • urlstr: string

        输入的网址.

      Returns any

      返回json格式数据.

    • :根据坐标或点获取网络路径上的最近点

      Parameters

      • Coordinate: Coordinate | Feature<Point>

      Returns Feature<Point>

      Point

    • 返回导航路径

      Returns LineString

      线

    • Parameters

      • menuitems: any

      Returns void

    • Parameters

      • event: any

      Returns void

    • Returns void

    • Parameters

      • index: any

      Returns void

    • Parameters

      • type: string | number
      • fn: any

      Returns PathLayer

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

      Parameters

      • type: string | number

        事件类型

      • fn: Function

        事件处理函数

      • scope: any

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

      Returns any

      当前实例对象

    • 导出路径数据 @description:

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

    • Returns void

    • Returns void

    • 删除GeoJSON数据 @description:

      Parameters

      • classname: string

      Returns void

    • 删除导航所有数据 @description:

      Returns void

    • 删除导航mark @description:

      Returns void

    • 删除导航路径数据 @description:

      Returns void

    • Returns void

    • Returns void

    • Parameters

      • first: any
      • second: any

      Returns {
          Angle: number;
          markAngle: number;
          viewAngle: number;
          xx: number;
      }

      • Angle: number
      • markAngle: number
      • viewAngle: number
      • xx: number
    • :设置导航mark位置及角度

      Parameters

      • Coordinate: Coordinate | Feature<Point>
      • angle: number = 0

        角度

      Returns void

      Point

    • Parameters

      • zindex: any

      Returns void

    • Parameters

      • tracking: boolean = true
      • trackingDirection: boolean = true
      • speed: number = 10

      Returns void

    • Parameters

      • Optional option: any

      Returns void

    • Returns void

    • Returns void

    • Parameters

      • feat: any
      • Resolution: any

      Returns any[]

    • Parameters

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

      Returns void

    • 更新导航点

      Parameters

      • currentPoint: Feature<Point>

      Returns void

      Point

    Generated using TypeDoc