<?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 TiledMapServiceLayer:s with different lods in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tiledmapservicelayer-s-with-different-lods/m-p/548897#M51084</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Im using two TileMapServiceLayers with different number of levels (8 and 9). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I then want to be able to zoom to the max level individually on the active layer and depending on if the maxlevel is 8 or 9.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem is that it seem the lods in the layer is not updated when changing layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The first layer loaded get its lods put in the map and the second is ignored.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So if i load the layer1 with 8 lods , and change to layer2 i cant zoom to level9 and if i load layer2 first &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when layer1 is active i zoom to level9 and there i dont have any tiles. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found in the map that there is an instance of TileInfo in map (map.__tileInfo)&amp;nbsp; that holds the lods and this object is not updated when changing layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;im changing layers by calling.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;layer1.show();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;layer2.hide();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ive managed to get it to work by setting __tileInfo.lods to my active layers infoTile.lods but this seem like a ugly workaround and i dont want to change the internal of map , the instance is named __infoTile for a reason.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to trigger the __tileInfo instance to update when changing layers?. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Magnus&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Nov 2012 14:35:15 GMT</pubDate>
    <dc:creator>MagnusEriksson</dc:creator>
    <dc:date>2012-11-22T14:35:15Z</dc:date>
    <item>
      <title>TiledMapServiceLayer:s with different lods</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tiledmapservicelayer-s-with-different-lods/m-p/548897#M51084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Im using two TileMapServiceLayers with different number of levels (8 and 9). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I then want to be able to zoom to the max level individually on the active layer and depending on if the maxlevel is 8 or 9.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem is that it seem the lods in the layer is not updated when changing layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The first layer loaded get its lods put in the map and the second is ignored.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So if i load the layer1 with 8 lods , and change to layer2 i cant zoom to level9 and if i load layer2 first &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when layer1 is active i zoom to level9 and there i dont have any tiles. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found in the map that there is an instance of TileInfo in map (map.__tileInfo)&amp;nbsp; that holds the lods and this object is not updated when changing layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;im changing layers by calling.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;layer1.show();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;layer2.hide();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ive managed to get it to work by setting __tileInfo.lods to my active layers infoTile.lods but this seem like a ugly workaround and i dont want to change the internal of map , the instance is named __infoTile for a reason.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to trigger the __tileInfo instance to update when changing layers?. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Magnus&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2012 14:35:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/tiledmapservicelayer-s-with-different-lods/m-p/548897#M51084</guid>
      <dc:creator>MagnusEriksson</dc:creator>
      <dc:date>2012-11-22T14:35:15Z</dc:date>
    </item>
  </channel>
</rss>

