Fix OpenStreetMap attributions

This commit is contained in:
Tom Payne
2013-04-07 22:51:15 +02:00
parent 123e84de17
commit 0221998120
5 changed files with 49 additions and 27 deletions

View File

@@ -2,6 +2,7 @@ goog.provide('ol.source.Stamen');
goog.require('goog.asserts');
goog.require('ol.Attribution');
goog.require('ol.source.OpenStreetMap');
goog.require('ol.source.XYZ');
@@ -78,11 +79,12 @@ ol.source.StamenProviderConfig = {
/**
* @const {Array.<ol.Attribution>}
*/
ol.source.STAMEN_ATTRIBUTIONS = [new ol.Attribution(
'Map tiles by <a href="http://stamen.com">Stamen Design</a>, under ' +
'<a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. ' +
'Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under ' +
'<a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>.')];
ol.source.STAMEN_ATTRIBUTIONS = [
new ol.Attribution(
'Map tiles by <a href="http://stamen.com/">Stamen Design</a>, under ' +
'<a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.'),
ol.source.OpenStreetMap.DATA_ATTRIBUTION
];