Reference Source
public class | source

MapChartTraffic

Constructor Summary

Public Constructor
public

constructor(options: Object)

构造函数

Member Summary

Public Members
public

options: *

Method Summary

Public Methods
public

addToMapView(mapview: Object): Null

添加交通图到mapview

public

remove(): Null

移除交通图

Public Constructors

public constructor(options: Object) source

构造函数

Params:

NameTypeAttributeDescription
options Object

设置参数

options.data String

交通图的数据,格式: data: [{coords: [[lng, lat], [lng, lat]...], lineStyle: {normal: {color: "#ff0000"}}} ... ]

Public Members

public options: * source

Public Methods

public addToMapView(mapview: Object): Null source

添加交通图到mapview

Params:

NameTypeAttributeDescription
mapview Object

mapview对象

Return:

Null

public remove(): Null source

移除交通图

Return:

Null