共用方式為


TrafficLegendControl class

顯示地圖上交通圖例的控制項。

Extends

建構函式

TrafficLegendControl()

建構流量圖例控制項

方法

onAdd(Map)

新增至地圖時所呼叫之控制項的初始化方法。

繼承的方法

buildContainer<K>(Map, ControlStyle, string, K)

建置控制項的最外層容器,套用樣式,包括自動設定樣式的任何接聽程式。

onRemove()

從對應中移除控制項時所呼叫的方法。 應該對 控制項執行任何必要的清除。

建構函式詳細資料

TrafficLegendControl()

建構流量圖例控制項

new TrafficLegendControl()

方法詳細資料

onAdd(Map)

新增至地圖時所呼叫之控制項的初始化方法。

function onAdd(map: Map): HTMLElement

參數

map
Map

控制項將加入的對應。

傳回

HTMLElement

要放置在控制項地圖上的 HTMLElement。

繼承的方法的詳細資料

buildContainer<K>(Map, ControlStyle, string, K)

建置控制項的最外層容器,套用樣式,包括自動設定樣式的任何接聽程式。

function buildContainer<K>(map: Map, style: ControlStyle, ariaLabel?: string, tagName?: K): HTMLElementTagNameMap[K]

參數

map
Map
style
ControlStyle
ariaLabel

string

tagName

K

傳回

HTMLElementTagNameMap[K]

繼承自ControlBase.buildContainer

onRemove()

從對應中移除控制項時所呼叫的方法。 應該對 控制項執行任何必要的清除。

function onRemove()

繼承自ControlBase.onRemove