Merge pull request #10171 from mike-000/patch-1

Open default attributions links in a new tab or window
This commit is contained in:
Andreas Hocevar
2019-10-23 13:48:05 +02:00
committed by GitHub
3 changed files with 4 additions and 4 deletions

View File

@@ -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>';

View File

@@ -13,7 +13,7 @@ import XYZ from './XYZ.js';
* @api
*/
export const ATTRIBUTION = '&#169; ' +
'<a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> ' +
'<a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> ' +
'contributors.';

View File

@@ -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
];