Adapt sources to new signature for ol.Attribution

This commit is contained in:
Éric Lemoine
2013-08-30 16:47:42 +02:00
parent 818894bb56
commit 38ab64c3c3
5 changed files with 34 additions and 23 deletions

View File

@@ -113,7 +113,10 @@ ol.source.TileJSON.prototype.handleTileJSONResponse = function() {
[tileGrid.getTileRangeForExtentAndZ(attributionExtent, z)];
}
this.setAttributions([
new ol.Attribution(tileJSON.attribution, tileRanges)
new ol.Attribution({
html: tileJSON.attribution,
tileRanges: tileRanges
})
]);
}