As above has anyone got this sample to work
https://developers.arcgis.com/flex/sample-code/create-wmts-layer.htm
Seem to be going round in circles trying to get a non-ESRI WMTS working for either KVP or RESTful
Thanks in advance for any help
Solved! Go to Solution.
Lee,
It looks like OpenGeo has changed the available layers since this samples was made. All you need to do is change line 113 in the WMTSLayer.as to (important part is &LAYER):
+ "?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile" + "&LAYER=usa:states" + "&STYLE=_null" + "&FORMAT=image/png" + "&TILEMATRIXSET=EPSG:900913"
Also change the _baseURL:
private var _baseURL:String = "http://suite.opengeo.org/geoserver/gwc/service/wmts";
And zoom way out as the WMTS layer is now states.
Lee,
It looks like OpenGeo has changed the available layers since this samples was made. All you need to do is change line 113 in the WMTSLayer.as to (important part is &LAYER):
+ "?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile" + "&LAYER=usa:states" + "&STYLE=_null" + "&FORMAT=image/png" + "&TILEMATRIXSET=EPSG:900913"
Also change the _baseURL:
private var _baseURL:String = "http://suite.opengeo.org/geoserver/gwc/service/wmts";
And zoom way out as the WMTS layer is now states.
Thanks as ever for your help. We struggled to get RESTful non-esri WMTS to work and eventually went with extending the TiledMapServiceLayer object (?) as per the ESRI example. The only problem now is intergrating this solution into flex viewer.
Using WebTiled layer is probably better than extending the API, as it would make it work directly in the Flex Viewer.