Classes
Type Definitions
-
Options{Object}
-
Properties:
Name Type Description classNamestring
(defaults to 'ol-mouse-position')CSS 类名。
coordinateFormatCoordinateFormat | undefined 坐标格式。
projectionProjectionLike | undefined 投影。默认为视图投影。
renderfunction | undefined 控件需要重新渲染时调用的函数。此函数在
requestAnimationFrame回调中调用。targetHTMLElement | string | undefined 如果希望控件在地图视口之外渲染,请指定目标。
placeholderstring | undefined 当鼠标位置不可用时显示的标记(例如当指针离开地图视口时)。默认情况下,初始渲染一个不间断空格,当鼠标离开视口时保留最后的位置。当提供字符串时(例如
'no position'或''表示空字符串),它将用作占位符。wrapXboolean
(defaults to true)如果是全球投影,在投影的对跖经线上水平环绕世界。