<?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 Re: How to determine whether a layer is on but outside the scale range in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-determine-whether-a-layer-is-on-but-outside/m-p/41856#M3607</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Would they be able to use the getscale method for the map?&lt;BR /&gt; &lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/namespace_geometry.htm#getScale"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/namespace_geometry.htm#getScale&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cool, thanks for the tip. I wasn't aware of that. (strange that it's not just a property of the map, though)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Apr 2012 22:14:56 GMT</pubDate>
    <dc:creator>StephenLead</dc:creator>
    <dc:date>2012-04-12T22:14:56Z</dc:date>
    <item>
      <title>How to determine whether a layer is on but outside the scale range</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-determine-whether-a-layer-is-on-but-outside/m-p/41852#M3603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a way to determine whether a layer is switched on, but is not currently shown due to the scale threshold?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See the attached file for an example. When the map first loads, the counties layer is "on" but is not shown due to the map scale. Zoom in a level and and the counties appear.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I determine this programmatically? &lt;/SPAN&gt;&lt;STRONG&gt;featureLayer.visible&lt;/STRONG&gt;&lt;SPAN&gt; returns "true" at all scales. &lt;/SPAN&gt;&lt;STRONG&gt;featureLayer.onVisibilityChange&lt;/STRONG&gt;&lt;SPAN&gt; doesn't fire when the scale threshold is crossed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The workaround is to check the current map scale (by finding the LOD and figuring out the corresponding scale?) and compare it to the layer's minScale and maxScale. This seems like a clumsy workaround - is it the only option?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 06:04:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-determine-whether-a-layer-is-on-but-outside/m-p/41852#M3603</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2012-04-12T06:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine whether a layer is on but outside the scale range</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-determine-whether-a-layer-is-on-but-outside/m-p/41853#M3604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is there a way to determine whether a layer is switched on, but is not currently shown due to the scale threshold?&lt;BR /&gt;&lt;BR /&gt;See the attached file for an example. When the map first loads, the counties layer is "on" but is not shown due to the map scale. Zoom in a level and and the counties appear.&lt;BR /&gt;&lt;BR /&gt;How can I determine this programmatically? &lt;STRONG&gt;featureLayer.visible&lt;/STRONG&gt; returns "true" at all scales. &lt;STRONG&gt;featureLayer.onVisibilityChange&lt;/STRONG&gt; doesn't fire when the scale threshold is crossed.&lt;BR /&gt;&lt;BR /&gt;The workaround is to check the current map scale (by finding the LOD and figuring out the corresponding scale?) and compare it to the layer's minScale and maxScale. This seems like a clumsy workaround - is it the only option?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Steve&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This clumsy workaround is the only one I could come up with as well, due to the exact limitation you listed. When i layer loads, i check the min/max of all the component layers of the service.&amp;nbsp; We had people complain about not being able to see greyed out text, so we color coded green for visibile, yellow for partially visible (some sublayers on, some off) and red for hidden due to scale dependencies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.mymanatee.org/gisapps/mapviewer/"&gt;http://www.mymanatee.org/gisapps/mapviewer/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can see in our "Live Maps" TOC widget the color coded scale icons.&amp;nbsp; We also incorporated legend thumbnails.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 11:50:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-determine-whether-a-layer-is-on-but-outside/m-p/41853#M3604</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2012-04-12T11:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine whether a layer is on but outside the scale range</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-determine-whether-a-layer-is-on-but-outside/m-p/41854#M3605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would they be able to use the getscale method for the map?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/namespace_geometry.htm#getScale"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/namespace_geometry.htm#getScale&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 11:54:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-determine-whether-a-layer-is-on-but-outside/m-p/41854#M3605</guid>
      <dc:creator>PaulBushore</dc:creator>
      <dc:date>2012-04-12T11:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine whether a layer is on but outside the scale range</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-determine-whether-a-layer-is-on-but-outside/m-p/41855#M3606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Paul yes getting the map scale you use that method, its getting the Layer (and sublayer) visibilities that is, well, difficult.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Current Map scale 1:10000&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1 Dynamic Layer with 3 sublayers (a,b,c)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a - visible all the time&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;b - turns on at 1:15000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;c - turns on at 1:5000&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Most of us would prefer this displayed ArcMAP style where the group (1) indicates some layers arent drawing&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1 (symbolize some not drawing)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- a - (symbolize as visible)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- b - (symbolize as checked and visible, but would turn off if you zoom out)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- c - (symbolize as checked, but not visible due to scale)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;unfortunately to get the info about the sublayers you need to make a separate query to the MapService to get the layer properties.&amp;nbsp; You also either need to store this info (per layer) and check it when the scale changes (onzoomin, onzoomout) or you need to make queries everytime.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 12:14:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-determine-whether-a-layer-is-on-but-outside/m-p/41855#M3606</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2012-04-12T12:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine whether a layer is on but outside the scale range</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-determine-whether-a-layer-is-on-but-outside/m-p/41856#M3607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Would they be able to use the getscale method for the map?&lt;BR /&gt; &lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/namespace_geometry.htm#getScale"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/namespace_geometry.htm#getScale&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cool, thanks for the tip. I wasn't aware of that. (strange that it's not just a property of the map, though)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 22:14:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-determine-whether-a-layer-is-on-but-outside/m-p/41856#M3607</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2012-04-12T22:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine whether a layer is on but outside the scale range</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-determine-whether-a-layer-is-on-but-outside/m-p/41857#M3608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This clumsy workaround is the only one I could come up with as well, due to the exact limitation you listed.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sounds like an enhancement request for Esri.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We'd need a boolean property for "will display at the current scale". This should apply to featureLayers and tiledMapServiceLayers, and for each layer of a dynamicMapServiceLayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 22:21:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-determine-whether-a-layer-is-on-but-outside/m-p/41857#M3608</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2012-04-12T22:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine whether a layer is on but outside the scale range</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-determine-whether-a-layer-is-on-but-outside/m-p/41858#M3609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Sounds like an enhancement request for Esri.&lt;BR /&gt;&lt;BR /&gt;We'd need a boolean property for "will display at the current scale". This should apply to featureLayers and tiledMapServiceLayers, and for each layer of a dynamicMapServiceLayer.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Steve&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think its each layer of a tiled as well.&amp;nbsp; Need to know why its not showing in the tile!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2012 12:40:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-determine-whether-a-layer-is-on-but-outside/m-p/41858#M3609</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2012-04-13T12:40:51Z</dc:date>
    </item>
  </channel>
</rss>

