<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Issue developing a custom Tile map service Layer in ArcGIS Server with JavaScript API Questions</title>
    <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/issue-developing-a-custom-tile-map-service-layer/m-p/807130#M323</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="padding: 0px;"&gt;Hi,&lt;/P&gt;&lt;P style="padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;I want to develop a custom&amp;nbsp;TiledMapServiceLayer but icannot add it to map&amp;nbsp;&lt;/P&gt;&lt;P style="padding: 0px;"&gt;&lt;/P&gt;&lt;P style="padding: 0px;"&gt;&lt;/P&gt;&lt;P style="padding: 0px;"&gt;define([&lt;BR /&gt;"dojo/_base/declare", "esri/layers/TiledMapServiceLayer", "dojo/string"&lt;BR /&gt;],&lt;BR /&gt;function (&lt;BR /&gt;declare, TiledMapServiceLayer, string&lt;BR /&gt;) {&lt;BR /&gt;return declare("MyTileLayer", TiledMapServiceLayer, {&lt;BR /&gt;getTileUrl: function (level, row, col) {&lt;/P&gt;&lt;P style="padding: 0px;"&gt;&lt;/P&gt;&lt;P style="padding: 0px;"&gt;var ts =&amp;nbsp;&lt;/P&gt;&lt;P style="padding: 0px;"&gt;var url = string.substitute(thi.url, {&lt;BR /&gt;column: col,&lt;BR /&gt;row:row,&lt;BR /&gt;level:level&lt;BR /&gt;});&lt;/P&gt;&lt;P style="padding: 0px;"&gt;url += url + "?ts=" + ts;&lt;/P&gt;&lt;P style="padding: 0px;"&gt;return url;&lt;BR /&gt;}&lt;BR /&gt;});&lt;BR /&gt;});&lt;/P&gt;&lt;P style="padding: 0px;"&gt;&lt;/P&gt;&lt;P style="padding: 0px;"&gt;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.&lt;/P&gt;&lt;P style="padding: 0px;"&gt;&lt;/P&gt;&lt;P style="padding: 0px;"&gt;Second question is can i add it through web map?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 Sep 2017 16:07:11 GMT</pubDate>
    <dc:creator>Haider_Ali</dc:creator>
    <dc:date>2017-09-09T16:07:11Z</dc:date>
    <item>
      <title>Issue developing a custom Tile map service Layer</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/issue-developing-a-custom-tile-map-service-layer/m-p/807130#M323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="padding: 0px;"&gt;Hi,&lt;/P&gt;&lt;P style="padding: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;I want to develop a custom&amp;nbsp;TiledMapServiceLayer but icannot add it to map&amp;nbsp;&lt;/P&gt;&lt;P style="padding: 0px;"&gt;&lt;/P&gt;&lt;P style="padding: 0px;"&gt;&lt;/P&gt;&lt;P style="padding: 0px;"&gt;define([&lt;BR /&gt;"dojo/_base/declare", "esri/layers/TiledMapServiceLayer", "dojo/string"&lt;BR /&gt;],&lt;BR /&gt;function (&lt;BR /&gt;declare, TiledMapServiceLayer, string&lt;BR /&gt;) {&lt;BR /&gt;return declare("MyTileLayer", TiledMapServiceLayer, {&lt;BR /&gt;getTileUrl: function (level, row, col) {&lt;/P&gt;&lt;P style="padding: 0px;"&gt;&lt;/P&gt;&lt;P style="padding: 0px;"&gt;var ts =&amp;nbsp;&lt;/P&gt;&lt;P style="padding: 0px;"&gt;var url = string.substitute(thi.url, {&lt;BR /&gt;column: col,&lt;BR /&gt;row:row,&lt;BR /&gt;level:level&lt;BR /&gt;});&lt;/P&gt;&lt;P style="padding: 0px;"&gt;url += url + "?ts=" + ts;&lt;/P&gt;&lt;P style="padding: 0px;"&gt;return url;&lt;BR /&gt;}&lt;BR /&gt;});&lt;BR /&gt;});&lt;/P&gt;&lt;P style="padding: 0px;"&gt;&lt;/P&gt;&lt;P style="padding: 0px;"&gt;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.&lt;/P&gt;&lt;P style="padding: 0px;"&gt;&lt;/P&gt;&lt;P style="padding: 0px;"&gt;Second question is can i add it through web map?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Sep 2017 16:07:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/issue-developing-a-custom-tile-map-service-layer/m-p/807130#M323</guid>
      <dc:creator>Haider_Ali</dc:creator>
      <dc:date>2017-09-09T16:07:11Z</dc:date>
    </item>
  </channel>
</rss>

