<?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: Setting Definition Expressions with a Dynamic Map Service in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/setting-definition-expressions-with-a-dynamic-map/m-p/205871#M2395</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We found the solution in 100.1.0. After awaiting the ArcGISMapImageLayer.LoadAsync call, we are able to set layer orders, visibilities, renderers, definition expressions, etc. by working with the Sublayers property.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that Sublayers is a list&amp;nbsp;ArcGISSublayer objects, so we did have to cast a given layer to an ArcGISMapImageSublayer to set properties like Renderer, Opacity, and DefinitionExpression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jan 2018 21:59:46 GMT</pubDate>
    <dc:creator>DaveStahl</dc:creator>
    <dc:date>2018-01-16T21:59:46Z</dc:date>
    <item>
      <title>Setting Definition Expressions with a Dynamic Map Service</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/setting-definition-expressions-with-a-dynamic-map/m-p/205870#M2394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking to migrate an app from 10.2.7 to 100.0.0, but I'm having trouble finding the replacement logic for the old ArcGISDynamicMapServiceLayer. It has a LayerDefinitions property where I could set the definition expression (aka where clause) for each applicable sub-layer. How do I do that in 100.0.0?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For 100.0.0, I'm using the ArcGISMapImageLayer. I simply can't find a spot to set definition expressions. I must be missing something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that this is not something I can solve by using a FeatureLayer. This is a dynamic map service with a whole bunch of sub-layers, and I'm looking to get map images consisting of&amp;nbsp;a subset of those layers with some definition expressions in play.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 20:57:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/setting-definition-expressions-with-a-dynamic-map/m-p/205870#M2394</guid>
      <dc:creator>DaveStahl</dc:creator>
      <dc:date>2017-06-14T20:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Definition Expressions with a Dynamic Map Service</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/setting-definition-expressions-with-a-dynamic-map/m-p/205871#M2395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We found the solution in 100.1.0. After awaiting the ArcGISMapImageLayer.LoadAsync call, we are able to set layer orders, visibilities, renderers, definition expressions, etc. by working with the Sublayers property.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that Sublayers is a list&amp;nbsp;ArcGISSublayer objects, so we did have to cast a given layer to an ArcGISMapImageSublayer to set properties like Renderer, Opacity, and DefinitionExpression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2018 21:59:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/setting-definition-expressions-with-a-dynamic-map/m-p/205871#M2395</guid>
      <dc:creator>DaveStahl</dc:creator>
      <dc:date>2018-01-16T21:59:46Z</dc:date>
    </item>
  </channel>
</rss>

