Issue developing a custom Tile map service Layer

370
0
09-09-2017 09:07 AM
Haider_Ali
Occasional Contributor

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?

Tags (1)
0 Kudos
0 Replies