RouteModel
用于处理路径分析的核心逻辑,包括路径计算、图形绘制和事件处理
关系
Implements
RouteModel Implements IRouteModel
实现接口: IRouteModel
用于处理路径分析的核心逻辑,包括路径计算、图形绘制和事件处理
构造函数
RouteModel
构造函数
属性
clickOn
点击事件监听器
clickOn: any
类型: any
directionsList
路径文字数据
directionsList: IDirectionsList
类型: IDirectionsList
distance
路径总距离
distance: string
类型: string
duration
路径总时间
duration: string
类型: string
endMapPoint
结束点位置信息
endMapPoint: any
类型: any
getRouteOver
请求路径数据是否请求完毕的锁
getRouteOver: boolean
类型: boolean
pathwayMapPointlist
途径点位置信息列表
pathwayMapPointlist: IPoint
类型: IPoint
props
模型属性
props: IPluginModelProps
routeGraphicsLayer
路径分析图层
routeGraphicsLayer: GraphicsLayer
类型: GraphicsLayer
routeStyle
路径请求类型
routeStyle: string | number = 0
类型: string | number
默认值:0
startMapPoint
起始点位置信息
startMapPoint: any
类型: any
方法
addPointGraphic
添加点图形
addPointGraphic(type, point): void
参数
- type:
string点类型 - point:
any点位置
返回:void
clearGraphic
清除所有图形,但不清除存点
clearGraphic(): void
返回:void
clearPointGraphic
清除所有选点存点以及线图形
clearPointGraphic(): void
返回:void
getRouteT
天地图驾车路径分析服务 获取路径信息
getRouteT(): Promise
返回:Promise
getRouteXY
格式化驾车路径 经纬度数据
getRouteXY(root): void
参数
- root:
HTMLElementXML根节点
返回:void
layerInit
路径分析图层初始化
layerInit(): void
返回:void
pathwayPointListDelete
删除途径点列表项
pathwayPointListDelete(index): void
参数
- index:
number要删除的索引
返回:void
removeClickOn
删除场景点击监听
removeClickOn(): void
返回:void
routeGraphic
路径线图形
routeStyleChange
路径分析类型修改
setDistanceDuration
格式化驾车 总路程 总时间
setDistanceDuration(root): void
参数
- root:
HTMLElementXML根节点
返回:void
setGraphicPath
设置路径图层渲染 线图形
setGraphicPath(): void
返回:void
setRouteList
格式化驾车 路径行走信息
setRouteList(root): void
参数
- root:
HTMLElementXML根节点
返回:void
startOnePointClickEvent
开启场景点击获取场景点位置(起始点 结束点 途径点单点模式)
startTowPointClickEvent
开启场景点击获取场景点位置(起始点 结束点连点模式)
startTowPointClickEvent(): void
返回:void

BIMFlux AI
