Skip to content

Commit

Permalink
feat: remove undefinedHTML option from control ol-mouse-position
Browse files Browse the repository at this point in the history
BREAKING CHANGE:
The option `undefinedHTML` has been removed from the `MousePosition` control.
The control will now by default keep displaying the last mouse position when the mouse leaves the viewport. With `placeholder: ' '` you can keep the old behaviour. The placeholder option no longer accepts false as a valid value, instead simply omit the option. The undefinedHTML option has been removed. You should use placeholder instead.
Please refer to the [OpenLayers 7.0.0 Changelog](
https://github.com/openlayers/openlayers/releases/tag/v7.0.0).
  • Loading branch information
d-koppenhagen committed Apr 14, 2023
1 parent 78d94bd commit debd387
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 0 additions & 5 deletions docs/componentsguide/mapcontrols/mouseposition/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,3 @@ See [Demo page for all Map Controls](../index.md)
### target

- **Type**: `HTMLElement`

### undefinedHTML

- **Type**: `String`
- **Default**: ` `
3 changes: 1 addition & 2 deletions src/components/mapControls/MousePositionControl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ export default {
target: {
type: HTMLElement,
},
undefinedHTML: {
placeholder: {
type: String,
default: " ",
},
},
};
Expand Down

0 comments on commit debd387

Please sign in to comment.