new MousePosition(opt_options)
| Name | Type | Description | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Mouse position options.
|
|||||||||||||||||||||||||||||
Methods
-
getCoordinateFormat(){module:ol/coordinate~CoordinateFormat|undefined}
control/MousePosition.js, line 131 -
Return the coordinate format type used to render the current position or undefined.
Returns:
The format to render the current position in.
-
Return the projection that is used to report the mouse position.
Returns:
The projection to report mouse position in.
-
setCoordinateFormat(format)
control/MousePosition.js, line 195 -
Set the coordinate format type used to render the current position.
Name Type Description formatmodule:ol/coordinate~CoordinateFormat The format to render the current position in.
-
setMap()
control/MousePosition.js, line 173 -
-
setProjection(projection)
control/MousePosition.js, line 206 -
Set the projection that is used to report the mouse position.
Name Type Description projectionmodule:ol/proj~ProjectionLike The projection to report mouse position in.
OpenLayers