Merge pull request #10171 from mike-000/patch-1
Open default attributions links in a new tab or window
This commit is contained in:
@@ -44,7 +44,7 @@ export function quadKey(tileCoord) {
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
*/
|
*/
|
||||||
const TOS_ATTRIBUTION = '<a class="ol-attribution-bing-tos" ' +
|
const TOS_ATTRIBUTION = '<a class="ol-attribution-bing-tos" ' +
|
||||||
'href="https://www.microsoft.com/maps/product/terms.html">' +
|
'href="https://www.microsoft.com/maps/product/terms.html" target="_blank">' +
|
||||||
'Terms of Use</a>';
|
'Terms of Use</a>';
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import XYZ from './XYZ.js';
|
|||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
export const ATTRIBUTION = '© ' +
|
export const ATTRIBUTION = '© ' +
|
||||||
'<a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> ' +
|
'<a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> ' +
|
||||||
'contributors.';
|
'contributors.';
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ import XYZ from './XYZ.js';
|
|||||||
* @type {Array<string>}
|
* @type {Array<string>}
|
||||||
*/
|
*/
|
||||||
const ATTRIBUTIONS = [
|
const ATTRIBUTIONS = [
|
||||||
'Map tiles by <a href="https://stamen.com/">Stamen Design</a>, ' +
|
'Map tiles by <a href="https://stamen.com/" target="_blank">Stamen Design</a>, ' +
|
||||||
'under <a href="https://creativecommons.org/licenses/by/3.0/">CC BY' +
|
'under <a href="https://creativecommons.org/licenses/by/3.0/" target="_blank">CC BY' +
|
||||||
' 3.0</a>.',
|
' 3.0</a>.',
|
||||||
OSM_ATTRIBUTION
|
OSM_ATTRIBUTION
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user