Avoid HTML entities like and ©
Use numerical entities instead for XHTML compatiblity.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -12,7 +12,7 @@ import XYZ from '../source/XYZ.js';
|
||||
* @type {string}
|
||||
* @api
|
||||
*/
|
||||
export const ATTRIBUTION = '© ' +
|
||||
export const ATTRIBUTION = '© ' +
|
||||
'<a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> ' +
|
||||
'contributors.';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user