camptocamp/cgxp — pull request #118 by asaunier (2012-06-19 17:11:58+00:00)
Title: WMTS layer source

This PR adds WMTS layers as a new source type to CGXP.
At the moment it is quite simple but provide the possibility to switch URL depending on the zoomlevel.
Example of usage:
```
// layer sources
sources: {
"olsource": {
ptype: "gxp_olsource"
},
"wmtssource": {
ptype: "cgxp_wmtssource"
}
},
```
```
layers: [{
source: "wmtssource",
group: 'background',
args: [{
name: 'foo',
layer: 'bar',
url: '...',
secondaryUrl: '...',
zoomThreshold: 10
}]
}]
```

I have noticed a closed issue on GXP's GitHub but found no trace of a WMTS source in GXP.
https://github.com/opengeo/gxp/issues/15