Select to view content in your preferred language

OSGeo TMS in ESRI Javascript API

1552
2
12-20-2011 11:57 AM
DavidHollema
Deactivated User
Is it possible to consume an OSGeo TMS service in ESRI jsapi?  I understand that TMS is different than OGC WMTS.  Here is an example TMS service.

http://wms.chartbundle.com/tms/
2 Replies
ShinjiKATAYA1
Esri Contributor

Hi, David. Is this comment is still need answer ?

In my understanding, Esri JavaScript API does not have class support "OSGeo TMS". But you could read "OSGeo TMS" as layer to create a custom subclass inherited from the WebTileLayer. In  NYC Map Tiles sites, you could find sample implementation of both Esri JavaScript API 3.x and 4.x.

This is an example)

      var TMSLayer = WebTileLayer.createSubclass({
        getTileUrl: function(level, row, col){
          var y = (1 << level) - row - 1;
          return this.urlTemplate.replace("{level}", level).replace("{col}", col).replace("{row}", y);
        }
      });

 

0 Kudos
Den-GIS
Regular Contributor

Hi ShinjiKATAYA1,

Is it possible to integrate secured TMS Layer in ArcGIS Javascript App. My TMS  asks for username and password. (not credentials userid and token)

DenisGlibanovic_0-1643210962483.png

 

0 Kudos