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)
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); } });
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.