diff --git a/src/ol/control/MousePosition.js b/src/ol/control/MousePosition.js index 839ab0d8ea..680a2120a8 100644 --- a/src/ol/control/MousePosition.js +++ b/src/ol/control/MousePosition.js @@ -29,9 +29,9 @@ const COORDINATE_FORMAT = 'coordinateFormat'; * callback. * @property {Element|string} [target] Specify a target if you want the * control to be rendered outside of the map's viewport. - * @property {string} [undefinedHTML=' '] Markup to show when coordinates are not + * @property {string} [undefinedHTML=' '] Markup to show when coordinates are not * available (e.g. when the pointer leaves the map viewport). By default, the last position - * will be replaced with `' '` when the pointer leaves the viewport. To + * will be replaced with `' '` (` `) when the pointer leaves the viewport. To * retain the last rendered position, set this option to something falsey (like an empty * string `''`). */ @@ -79,7 +79,7 @@ class MousePosition extends Control { * @private * @type {string} */ - this.undefinedHTML_ = 'undefinedHTML' in options ? options.undefinedHTML : ' '; + this.undefinedHTML_ = 'undefinedHTML' in options ? options.undefinedHTML : ' '; /** * @private diff --git a/src/ol/source/OSM.js b/src/ol/source/OSM.js index 749a62c0a4..f84ade0a41 100644 --- a/src/ol/source/OSM.js +++ b/src/ol/source/OSM.js @@ -12,7 +12,7 @@ import XYZ from '../source/XYZ.js'; * @type {string} * @api */ -export const ATTRIBUTION = '© ' + +export const ATTRIBUTION = '© ' + 'OpenStreetMap ' + 'contributors.';