diff --git a/examples/xyz-esri.js b/examples/xyz-esri.js index aede312ea2..b1700b640f 100644 --- a/examples/xyz-esri.js +++ b/examples/xyz-esri.js @@ -1,3 +1,4 @@ +goog.require('ol.Attribution'); goog.require('ol.Map'); goog.require('ol.RendererHint'); goog.require('ol.View2D'); @@ -6,11 +7,17 @@ goog.require('ol.proj'); goog.require('ol.source.XYZ'); +var attribution = new ol.Attribution({ + html: 'Tiles © ArcGIS' +}); + var map = new ol.Map({ target: 'map', layers: [ new ol.layer.Tile({ source: new ol.source.XYZ({ + attributions: [attribution], url: 'http://server.arcgisonline.com/ArcGIS/rest/services/' + 'World_Topo_Map/MapServer/tile/{z}/{y}/{x}' })