Still struggling with non-ESRI WMTS and the flex API. Does anyone have an example of a non-ESRI WMTS that I can try? Preferably RESTful.
Thanks
Have you tried using the WebTiled layer instead? It usually works better than WMTS as a way to get to a WMTS layer...
Thanks for the reply. Have managed to get it working extending the TiledMapServiceLayer object (?) but this is not the approach we want to take as the eventual aim is to integrate a RESTful non-ESRI WMTS into flex viewer. Have managed fine with an ESRI WMTS is there an issue with non ESRI WMTS and the flex API?
No, I'm not aware of any issues with non-Esri WMTS and the Flex API. I would still recommend using the WebTiledLayer instead. It is supported in both Javascript and Flex APIs. One benefit is that once you have set up the WebTiledLayer, there is no longer a need for initial metadata queries. For example, in ArcGIS Online, when you save a WMTS as part of a web map, it actually gets stored as WebTiledLayer.
Ok have looked at the documentation for WebTiledLayer , in flex viewer it would seem to be not working because it is not Web Mercator the WKID we are using is 27700. Similarly in the API example all the layers are Web Mercator. Starting to go round in circles a bit. My question now seems to be how to add a non Web Mercator, non-ESRI WMTS to a map!
Any help greatly appreciatted