Select to view content in your preferred language

WMTS Layer as custom layer example not working

3671
3
Jump to solution
10-27-2014 04:11 AM
leecollier
Deactivated User


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

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

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.

View solution in original post

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus

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.

0 Kudos
leecollier
Deactivated User

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.

0 Kudos
BjornSvensson
Esri Regular Contributor

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_Bi...

0 Kudos