Hi,
I want to develop a custom TiledMapServiceLayer but icannot add it to map
define([
"dojo/_base/declare", "esri/layers/TiledMapServiceLayer", "dojo/string"
],
function (
declare, TiledMapServiceLayer, string
) {
return declare("MyTileLayer", TiledMapServiceLayer, {
getTileUrl: function (level, row, col) {
var ts =
var url = string.substitute(thi.url, {
column: col,
row:row,
level:level
});
url += url + "?ts=" + ts;
return url;
}
});
});
And adding the layer to map with map.addLayer but it is not added in the map nor in the layerlist widget and strangely no console error as well.
Second question is can i add it through web map?