Module: ol/control/Control

ol/control/Control


Classes

Control

Type Definitions

Options{Object}

Properties:
Name Type Description
element HTMLElement | undefined

元素是控件的容器元素。仅在开发自定义控件时需要指定。

render function | undefined

控件需要重新渲染时调用的函数。此函数在 requestAnimationFrame 回调中调用。

target HTMLElement | string | undefined

如果希望控件在地图视口之外渲染,请指定目标。