Merge pull request #2616 from fredj/attributions-target

Target for attribution links differs between maps
This commit is contained in:
Frédéric Junod
2014-09-23 14:46:11 +02:00
3 changed files with 3 additions and 5 deletions
+1 -2
View File
@@ -312,8 +312,7 @@ ol.control.Attribution.prototype.insertLogos_ = function(frameState) {
logoElement = image; logoElement = image;
} else { } else {
logoElement = goog.dom.createDom(goog.dom.TagName.A, { logoElement = goog.dom.createDom(goog.dom.TagName.A, {
'href': logoValue, 'href': logoValue
'target': '_blank'
}); });
logoElement.appendChild(image); logoElement.appendChild(image);
} }
+1 -1
View File
@@ -63,7 +63,7 @@ goog.inherits(ol.source.BingMaps, ol.source.TileImage);
* @api * @api
*/ */
ol.source.BingMaps.TOS_ATTRIBUTION = new ol.Attribution({ ol.source.BingMaps.TOS_ATTRIBUTION = new ol.Attribution({
html: '<a class="ol-attribution-bing-tos" target="_blank" ' + html: '<a class="ol-attribution-bing-tos" ' +
'href="http://www.microsoft.com/maps/product/terms.html">' + 'href="http://www.microsoft.com/maps/product/terms.html">' +
'Terms of Use</a>' 'Terms of Use</a>'
}); });
+1 -2
View File
@@ -47,8 +47,7 @@ goog.inherits(ol.source.MapQuest, ol.source.XYZ);
* @type {ol.Attribution} * @type {ol.Attribution}
*/ */
ol.source.MapQuest.TILE_ATTRIBUTION = new ol.Attribution({ ol.source.MapQuest.TILE_ATTRIBUTION = new ol.Attribution({
html: 'Tiles Courtesy of ' + html: 'Tiles Courtesy of <a href="http://www.mapquest.com/">MapQuest</a>'
'<a href="http://www.mapquest.com/" target="_blank">MapQuest</a>'
}); });