WMTS Web Map In Basemap Gellery Problem

3631
1
04-17-2015 02:44 AM
EduardLepner1
New Contributor

Hi!

Our ArcGIS Portal has WMTS Maps. We'd like to switch them using Basemap gallery widget. But when you do so it throws error "TypeError: this.tileInfo.spatialReference.toJson is not a function", however everything works fine with ESRI Map Service layers.

I added a sample which demonstrates this issue.

Thanks in advance.

Tags (3)
0 Kudos
1 Reply
Arpa_PiemonteGeoportal_Team
Occasional Contributor II

We have the same problem but in AGOL.

We can create and use WMTS  as basemaps in the AGOL Map viewer, but in any other js webapplication (ie agol  templates viewers) the wmts basemap doesn't 'appear.

Searching with Firefox firebug we noticed this error while we try to switch from standard basemap (tiled rest map service)  to WMTS basemap from the basemap gallery:

TypeError: this.tileInfo.spatialReference.toJson is not a function

we use the same spatial refeence ( webmaercator) and the same tiling schema.

Any help is appreciated.

0 Kudos