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}
|
||||
*/
|
||||
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>';
|
||||
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import XYZ from './XYZ.js';
|
||||
* @api
|
||||
*/
|
||||
export const ATTRIBUTION = '© ' +
|
||||
'<a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> ' +
|
||||
'<a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> ' +
|
||||
'contributors.';
|
||||
|
||||
|
||||
|
||||
@@ -11,8 +11,8 @@ import XYZ from './XYZ.js';
|
||||
* @type {Array<string>}
|
||||
*/
|
||||
const ATTRIBUTIONS = [
|
||||
'Map tiles by <a href="https://stamen.com/">Stamen Design</a>, ' +
|
||||
'under <a href="https://creativecommons.org/licenses/by/3.0/">CC BY' +
|
||||
'Map tiles by <a href="https://stamen.com/" target="_blank">Stamen Design</a>, ' +
|
||||
'under <a href="https://creativecommons.org/licenses/by/3.0/" target="_blank">CC BY' +
|
||||
' 3.0</a>.',
|
||||
OSM_ATTRIBUTION
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user