<?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: Select a feature with the Export Web Map service in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-a-feature-with-the-export-web-map-service/m-p/449167#M41493</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Robert,&lt;/P&gt;&lt;P&gt;it works. Is it possible to let the rest of the layers visible? I mean i just want to select one feature and the other features and the other layers should be visible without changing style. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Dec 2015 21:18:20 GMT</pubDate>
    <dc:creator>MustafaKocaoğlu</dc:creator>
    <dc:date>2015-12-22T21:18:20Z</dc:date>
    <item>
      <title>Select a feature with the Export Web Map service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-a-feature-with-the-export-web-map-service/m-p/449161#M41487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a javascript app without a&amp;nbsp; map.&amp;nbsp; I need a png from export web map service and one of the features(geometry type polygon) should be&amp;nbsp; selected. My code look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #3334ca;"&gt;var dynamicLayers = '[{"source":{"mapLayerId":3,"selectionObjectIds":['+ attrs.OBJECTID +'],"selectionSymbol":{"symbol":{"type":"esriSFS","style":"esriSFSSolid","color":[255,0,0,255]}}}}]';&lt;/SPAN&gt;
&lt;SPAN style="color: #3334ca;"&gt;var JsonObj = {&lt;/SPAN&gt;
&lt;SPAN style="color: #3334ca;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "bbox": JSON.stringify(result.features[0].geometry.getExtent()/*.expand(2) */),&lt;/SPAN&gt;
&lt;SPAN style="color: #3334ca;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "format":"png",&lt;/SPAN&gt;
&lt;SPAN style="color: #3334ca;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "transparent": "false",&lt;/SPAN&gt;
&lt;SPAN style="color: #3334ca;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "size":"800,600",&lt;/SPAN&gt;
&lt;SPAN style="color: #3334ca;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "f": "pjson",&lt;/SPAN&gt;
&lt;SPAN style="color: #3334ca;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "mapScale": "1000",&lt;/SPAN&gt;
&lt;SPAN style="color: #3334ca;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dynamicLayers":dynamicLayer&lt;/SPAN&gt;
&lt;SPAN style="color: #3334ca;"&gt;}&lt;/SPAN&gt;

&lt;SPAN style="color: #3334ca;"&gt;$.get(getConfigValuByName("exportMapImage"), JsonObj, function (data) {&lt;/SPAN&gt;
&lt;SPAN style="color: #3334ca;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $("#loading").show();&lt;/SPAN&gt;
&lt;SPAN style="color: #3334ca;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var obj = JSON.parse(data);&lt;/SPAN&gt;
&lt;SPAN style="color: #3334ca;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*....*/&lt;/SPAN&gt;
&lt;SPAN style="color: #3334ca;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $("#loading").hide();&lt;/SPAN&gt;
&lt;SPAN style="color: #3334ca;"&gt;});&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:03:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-a-feature-with-the-export-web-map-service/m-p/449161#M41487</guid>
      <dc:creator>MustafaKocaoğlu</dc:creator>
      <dc:date>2021-12-11T20:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Select a feature with the Export Web Map service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-a-feature-with-the-export-web-map-service/m-p/449162#M41488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mustafa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Have you tried to run those json parameters just using the rest endpoint in your web browser? I do not see any support for &lt;SPAN class="string"&gt;selectionObjectIds in the help documentation. Does your map service have dynamicLayers support enabled?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 14:23:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-a-feature-with-the-export-web-map-service/m-p/449162#M41488</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-12-22T14:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Select a feature with the Export Web Map service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-a-feature-with-the-export-web-map-service/m-p/449163#M41489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mustafa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; This is what I think will work in your situation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="_jivemacro_uid_1450796416387251 jive_macro_code jive_text_macro" data-renderedposition="92_8_912_16" jivemacro_uid="_1450796416387251" modifiedtitle="true"&gt;&lt;P&gt;var dynamicLayers = '[{"id":102,"source":{"type":"mapLayer","mapLayerId":3},"definitionExpression": "YOUR_OBJECTID_FIELD_NAME = '+ attrs.OBJECTID +'","drawingInfo":{"renderer": {"type":"simple", "symbol": {"type":"esriSFS","style":"esriSFSSolid","color":[0,0,255,255],"outline":{"type":"esriSLS","style":"esriSLSSolid","color":[0,0,255,255],"width":1}}}}},{"id":101,"source":{"type":"mapLayer","mapLayerId":3},"drawingInfo":{"renderer": {"type":"simple", "symbol": {"type":"esriSFS","style":"esriSFSSolid","color":[201,242,208,255],"outline":{"type":"esriSLS","style":"esriSLSSolid","color":[110, 110, 110, 255],"width":1}}}}}]';&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically you define two dynamic layer one with a definition expression for the ObjectId you want to highlight and the second if the whole layer you want one the exported image (they are the same layers). The order you add them to the &lt;SPAN class="string"&gt;dynamicLayers determines their drawing order.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 15:03:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-a-feature-with-the-export-web-map-service/m-p/449163#M41489</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-12-22T15:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Select a feature with the Export Web Map service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-a-feature-with-the-export-web-map-service/m-p/449164#M41490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the variable used in the JSonObj incorrect? You initialize dynamicLayers but &lt;SPAN class="string"&gt;in the constructor &lt;/SPAN&gt;use&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="string"&gt;&lt;/SPAN&gt;
&lt;SPAN class="string"&gt;"dynamicLayers":dynamicLayer &lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:03:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-a-feature-with-the-export-web-map-service/m-p/449164#M41490</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-12-11T20:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Select a feature with the Export Web Map service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-a-feature-with-the-export-web-map-service/m-p/449165#M41491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, i tried to run those json parameters just using the rest endpoint in my browser and my map server have dynamicLayers support enabled. I got the png but not selected my geometry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 21:06:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-a-feature-with-the-export-web-map-service/m-p/449165#M41491</guid>
      <dc:creator>MustafaKocaoğlu</dc:creator>
      <dc:date>2015-12-22T21:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Select a feature with the Export Web Map service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-a-feature-with-the-export-web-map-service/m-p/449166#M41492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mustafa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; As I mentioned I can not find in the help docs where those parameters are supported. Look at my last reply for a solution that does work based on my testing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 21:15:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-a-feature-with-the-export-web-map-service/m-p/449166#M41492</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-12-22T21:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Select a feature with the Export Web Map service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-a-feature-with-the-export-web-map-service/m-p/449167#M41493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Robert,&lt;/P&gt;&lt;P&gt;it works. Is it possible to let the rest of the layers visible? I mean i just want to select one feature and the other features and the other layers should be visible without changing style. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 21:18:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-a-feature-with-the-export-web-map-service/m-p/449167#M41493</guid>
      <dc:creator>MustafaKocaoğlu</dc:creator>
      <dc:date>2015-12-22T21:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Select a feature with the Export Web Map service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-a-feature-with-the-export-web-map-service/m-p/449168#M41494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 21:20:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-a-feature-with-the-export-web-map-service/m-p/449168#M41494</guid>
      <dc:creator>MustafaKocaoğlu</dc:creator>
      <dc:date>2015-12-22T21:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Select a feature with the Export Web Map service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-a-feature-with-the-export-web-map-service/m-p/449169#M41495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mustafa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I do not know of a way to do that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 21:42:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-a-feature-with-the-export-web-map-service/m-p/449169#M41495</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-12-22T21:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Select a feature with the Export Web Map service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-a-feature-with-the-export-web-map-service/m-p/449170#M41496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 21:51:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/select-a-feature-with-the-export-web-map-service/m-p/449170#M41496</guid>
      <dc:creator>MustafaKocaoğlu</dc:creator>
      <dc:date>2015-12-22T21:51:38Z</dc:date>
    </item>
  </channel>
</rss>

