Fix attribution in xyz-retina example
This commit is contained in:
@@ -8,7 +8,8 @@ goog.require('ol.source.XYZ');
|
|||||||
|
|
||||||
|
|
||||||
var attribution = new ol.Attribution({
|
var attribution = new ol.Attribution({
|
||||||
html: 'Tiles rendered with <a href="http://www.maptiler.com/"> © USGS'
|
html: 'Tiles © USGS, rendered with ' +
|
||||||
|
'<a href="http://www.maptiler.com/">MapTiler</a>'
|
||||||
});
|
});
|
||||||
|
|
||||||
var mapMinZoom = 1;
|
var mapMinZoom = 1;
|
||||||
@@ -24,6 +25,7 @@ var map = new ol.Map({
|
|||||||
new ol.layer.Tile({
|
new ol.layer.Tile({
|
||||||
extent: ol.proj.transformExtent(mapExtent, 'EPSG:4326', 'EPSG:3857'),
|
extent: ol.proj.transformExtent(mapExtent, 'EPSG:4326', 'EPSG:3857'),
|
||||||
source: new ol.source.XYZ({
|
source: new ol.source.XYZ({
|
||||||
|
attributions: [attribution],
|
||||||
url: 'http://tileserver.maptiler.com/grandcanyon@2x/{z}/{x}/{y}.png',
|
url: 'http://tileserver.maptiler.com/grandcanyon@2x/{z}/{x}/{y}.png',
|
||||||
tilePixelRatio: 2, // THIS IS IMPORTANT
|
tilePixelRatio: 2, // THIS IS IMPORTANT
|
||||||
minZoom: mapMinZoom,
|
minZoom: mapMinZoom,
|
||||||
|
|||||||
Reference in New Issue
Block a user