WMTS sample not working...

1032
4
Jump to solution
10-04-2012 07:49 AM
FredSpataro
Occasional Contributor III
Hi All:

I'm trying to get a WMTS layer working but so far the sample (WMTS layer) doesn't seem to work:

---the "live" version does nothing (i think the proxy page url is bunk).
---a local copy with the sample html/javascript and proxy page is able to load a map but the layer comes in all jumbled. Tiles are missing and completely out of order. 

Anyone else able to make this work?  Did it break at one of the new versions?

Thanks
0 Kudos
1 Solution

Accepted Solutions
JeffPace
MVP Alum
if you are using 3.2, please include the required css

<link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.2/js/esri/css/esri.css" />

as referenced here
http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jshelp/css.htm

View solution in original post

0 Kudos
4 Replies
JeffPace
MVP Alum
if you are using 3.2, please include the required css

<link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.2/js/esri/css/esri.css" />

as referenced here
http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jshelp/css.htm
0 Kudos
FredSpataro
Occasional Contributor III
Yep, that's the issue.... not harp on this issue but if the samples are being upgraded to "/jsapi/arcgis/?v3.2" then they should include the appropriate new css link, no?

The sample also works correctly if you set the version back to v3.1.

Thanks for the quick response!
0 Kudos
JeffPace
MVP Alum
agreed and you are welcome 🙂
0 Kudos
RiinaPakarinen
New Contributor II
Hi

Our developer found the bug in the Javascript API in the file "wmts.js". It's a typo in there, that's why the WMTS API does not work properly.

In version 3.2 and 3.3 of the JavaScript API search in the file for "this.tileUr=" (without quotes and matching exactly that word.)
Replace it with "this.tileUrl" and then try again to load some WMTS...

We've already sent an email to ESRI (Switzerland) about this.

Regards
0 Kudos