Yes, this was added to check that the wmts positioning was correct, but
this can now be removed.

Addressed in d14b1c57a9bf44ba190eead9c3eed1f64a55bc0d


On 11 March 2013 14:28, Tom Payne <notifications@github.com> wrote:

> In examples/wmts-from-capabilities.js:
>
> > +
> > +/**
> > + * onload handler for the XHR request.
> > + */
> > +xhr.onload = function() {
> > +  if (xhr.status == 200) {
> > +    capabilities = parser.read(xhr.responseXML);
> > +    var wmtsOptions = ol.source.WMTS.optionsFromCapabilities(
> > +        capabilities, 'ch.swisstopo.pixelkarte-farbe');
> > +    wmtsOptions.crossOrigin = null;
> > +    map = new ol.Map({
> > +      layers: [
> > +        new ol.layer.TileLayer({
> > +          source: new ol.source.WMTS(wmtsOptions)
> > +        }),
> > +        new ol.layer.ImageLayer({
>
> Is the image layer really needed in this example?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/openlayers/ol3/pull/342/files#r3316443>
> .
>