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
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.
Using WebTiled layer is probably better than extending the API, as it would make it work directly in the Flex Viewer.
http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/WMS_WMTS_ArcIMS_WebTiled_and_Bing_Maps_layer_types/01m300000052000000/
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.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.