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
+1 -1
View File
@@ -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>';
+1 -1
View File
@@ -13,7 +13,7 @@ import XYZ from './XYZ.js';
* @api * @api
*/ */
export const ATTRIBUTION = '&#169; ' + 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.'; 'contributors.';
+2 -2
View File
@@ -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
]; ];