I have a layer on version 3 displaying parcels outline.
It's using a dojo.declare esri.layers.WebTileLayer class using an esri.layers.TileMapServiceLayer with a constructor that has all the information (extent, lods,tileinfo, copyright, getTileUrl() function to get the tile from the level,row,col ...
to set the layer I use the declared esri.layers.WebTileLayer with the url to the service (has https://host/getMap.aspx and some parameters including the layers and styles and last parameter is tileId= )
it ends up requesting and displaying on the map view something like:
tile url: https://host/GetMap.aspx?S=yy&layers=parcels,Pro&SLD=Parcels.sld.xml,Address.sld.xml&tileId=032001003310221210
Since TileMapServiceLayer is gone on version 4 I wonder how to replace it (if possible) and what actual type of layer will do it (all points to WebTileLayer on version 4 but cannot figure how to). Any help will be AMAZING!