Classes
Type Definitions
-
Options{Object}
-
Properties:
Name Type Argument Default Description classNamestring <optional>
'ol-mouse-position' CSS class name.
coordinateFormatmodule:ol/coordinate~CoordinateFormat <optional>
Coordinate format.
projectionmodule:ol/proj~ProjectionLike <optional>
Projection. Default is the view projection.
renderfunction <optional>
Function called when the control should be re-rendered. This is called in a
requestAnimationFramecallback.targetHTMLElement | string <optional>
Specify a target if you want the control to be rendered outside of the map's viewport.
placeholderstring | boolean <optional>
Markup to show when the mouse position is not available (e.g. when the pointer leaves the map viewport). By default, a non-breaking space is rendered when the mouse leaves the viewport. To render something else, provide a string to be used as the text content (e.g. 'no position' or '' for an empty string). Set the placeholder to
falseto retain the last position when the mouse leaves the viewport. In a future release, this will be the default behavior.undefinedHTMLstring <optional>
' ' This option is deprecated. Use the
placeholderoption instead.
OpenLayers