I searched through out the web and help files, no actual working sample using WMTSLayer added in API v2.5.I tried to build one but failed. Experts! please tell me where am I wrong? I tried both two follwing methods but neither map load and no error message at all.Method1:<esri:WMTSLayer id="wMTSLayer" url="http://www.simal.ryerson.ca:8080/geoserver/WoodStock/wmts" serviceMode="KVP" layerId="0" imageFormat="png"> </esri:WMTSLayer>
Method2: public function initialize() { var wmtsLayer:WMTSLayer = new WMTSLayer("http://www.simal.ryerson.ca:8080/geoserver/WoodStock/wmts"); wmtsLayer.alpha = 1; wmtsLayer.visible = true; mainMap.addLayer(wmtsLayer,2); } <esri:Map id="mainMap" />P.S: I also tried to extend the TiledMapServiceLayer but the sample in the help missing the code of most important file "WMTSLayer.as" and I don't know which way is working...