<?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: Replace Legend data from ArcGIS Server with simplemarker symbol in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/replace-legend-data-from-arcgis-server-with/m-p/693683#M64475</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Moses,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; using the above will change both the legend and the layer symbology in the map. Is that not what you are after?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Nov 2015 17:16:25 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2015-11-24T17:16:25Z</dc:date>
    <item>
      <title>Replace Legend data from ArcGIS Server with simplemarker symbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/replace-legend-data-from-arcgis-server-with/m-p/693676#M64468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to replace the symbol of some feature layer legend symbology that comes from the ArcGIS server legend url with simplemarker symbol defined in json in my app.config&amp;nbsp; in javascript code. I am able to get the legend symbol using ajax call to the legend on the REST endpoint &lt;SPAN style="color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: rgba(248, 248, 248, 0.6);"&gt;EST endpoint (.../MapServer/legend?f=pjson) to obtain the necessary info including the symbol img src and content in base 64 encrypted data. However, i want to replace the symbol with a custom simplemarker symbol that i have defined in my appconfig for some specific feature layers. However when i assign the simplemarker symbol to the legend.legenddata the symbol does not show on the legend table of content as expected. I am not sure what is missing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"type": "esriSMS",&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; "style": "esriSMSSquare",&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; "color": [76,115,0,255],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; "size": 8,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; "angle": 0,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; "xoffset": 0,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; "yoffset": 0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any useful advice will be greatly appreciate. Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 15:25:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/replace-legend-data-from-arcgis-server-with/m-p/693676#M64468</guid>
      <dc:creator>MosesAsuquo</dc:creator>
      <dc:date>2015-11-24T15:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Legend data from ArcGIS Server with simplemarker symbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/replace-legend-data-from-arcgis-server-with/m-p/693677#M64469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Moses,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Since you are not specifying an outline you should not have a comma following the "yoffset" parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 15:46:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/replace-legend-data-from-arcgis-server-with/m-p/693677#M64469</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-11-24T15:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Legend data from ArcGIS Server with simplemarker symbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/replace-legend-data-from-arcgis-server-with/m-p/693678#M64470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The original definition had an outline specified. I took out the outline. i have also taken out the preceding comma. Do you have any idea how to resolve this issue and if it's even possible to replace the legend symbol with a custom simple marker symbol? Thanks for the noticing the preceding comma.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 16:17:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/replace-legend-data-from-arcgis-server-with/m-p/693678#M64470</guid>
      <dc:creator>MosesAsuquo</dc:creator>
      <dc:date>2015-11-24T16:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Legend data from ArcGIS Server with simplemarker symbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/replace-legend-data-from-arcgis-server-with/m-p/693679#M64471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Moses,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I have never attempted to do what you are doing. How exactly are you planning on getting your modified version of the legend json to the legend dijit?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 16:22:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/replace-legend-data-from-arcgis-server-with/m-p/693679#M64471</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-11-24T16:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Legend data from ArcGIS Server with simplemarker symbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/replace-legend-data-from-arcgis-server-with/m-p/693680#M64472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt; I am able to get the legend symbol using ajax call to the legend on the REST &lt;/SPAN&gt;&lt;SPAN style="font-size: 15px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; color: #222222; background-color: rgba(248, 248, 248, 0.6);"&gt;endpoint (.../MapServer/legend?f=pjson) to obtain the necessary info including the symbol img src and content in base 64 encrypted data. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Inside of the Ajax success function i assign the legend data with the symbol (which is an i&lt;SPAN style="color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: rgba(248, 248, 248, 0.6);"&gt;mg src and content in base 64 encrypted data) &lt;/SPAN&gt;retrieved from the sever legend REST end point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works find and i can see the symbology represented on the legend and on the feature layers on the map. However, for some feature layers i will like to use a custom simple marker symbol instead of the symbol from the server legend REST end point. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason i am doing this is because i have some feature layers that share the SAME service URL and therefore all have the same symbol coming from the server legend endpoint so my legend have feature layers with the same symbologies. For this layers with same service URL or FeatureClass table I will like to defined simplemarker symbols with different styles to replace the server legend symbology so as to differentiate the layers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No. I cannot change the symbol in ArcMap for the different layers with the same service URL because these layers all have the same FeatureClass (one symbol) in ArcMap. The layers with same service URL are results of queries on same column of the feature class but different parameters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope i have not confused you... Please if you have any suggestion that will be great. Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 16:47:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/replace-legend-data-from-arcgis-server-with/m-p/693680#M64472</guid>
      <dc:creator>MosesAsuquo</dc:creator>
      <dc:date>2015-11-24T16:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Legend data from ArcGIS Server with simplemarker symbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/replace-legend-data-from-arcgis-server-with/m-p/693681#M64473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Moses,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; So if you are using ArcGIS Server 10.1 or greater than you can use this sample to change the renderer of layers in a dynamic map service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #000000; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px; background-color: #fefefe;"&gt;Dynamic layers provide the ability to change the renderer(s) for layers in a dynamic map service&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/renderer_dynamic_layer_class_breaks.html" title="https://developers.arcgis.com/javascript/jssamples/renderer_dynamic_layer_class_breaks.html"&gt;Class breaks renderer with dynamic layer | ArcGIS API for JavaScript&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 16:55:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/replace-legend-data-from-arcgis-server-with/m-p/693681#M64473</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-11-24T16:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Legend data from ArcGIS Server with simplemarker symbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/replace-legend-data-from-arcgis-server-with/m-p/693682#M64474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know that. The above suggeson will change the feature layer symbology when provided a renderder. I intend to change the legend symbology. I know ultimately that the legend symbologies must match the feature layers symbologies on the map.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 17:05:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/replace-legend-data-from-arcgis-server-with/m-p/693682#M64474</guid>
      <dc:creator>MosesAsuquo</dc:creator>
      <dc:date>2015-11-24T17:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Legend data from ArcGIS Server with simplemarker symbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/replace-legend-data-from-arcgis-server-with/m-p/693683#M64475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Moses,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; using the above will change both the legend and the layer symbology in the map. Is that not what you are after?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 17:16:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/replace-legend-data-from-arcgis-server-with/m-p/693683#M64475</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-11-24T17:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Legend data from ArcGIS Server with simplemarker symbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/replace-legend-data-from-arcgis-server-with/m-p/693684#M64476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Feature Layers with the same service URL are not as a result of class breaks on the layer. I don't intend to use class break render. What i am trying to do is to simply change the symbology for all the layers with the same service url so that they can be differentiated but not as with class break renderer. Basically the featurelayers are created using setDefinitionExpression so we could end up with featurelayers with the same URL but different query expression. Theses feature layers with the same URL end up having the same symbologies&amp;nbsp; both on the legend and on the map.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 17:18:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/replace-legend-data-from-arcgis-server-with/m-p/693684#M64476</guid>
      <dc:creator>MosesAsuquo</dc:creator>
      <dc:date>2015-11-24T17:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Legend data from ArcGIS Server with simplemarker symbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/replace-legend-data-from-arcgis-server-with/m-p/693685#M64477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the way the query expressions for each feature layer is complex and not base on one column of a Feature Class but several columns and parameters. Class Breaks works on one column with different range of values. This is another difference,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 17:22:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/replace-legend-data-from-arcgis-server-with/m-p/693685#M64477</guid>
      <dc:creator>MosesAsuquo</dc:creator>
      <dc:date>2015-11-24T17:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Legend data from ArcGIS Server with simplemarker symbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/replace-legend-data-from-arcgis-server-with/m-p/693686#M64478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Moses,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Don't get hung up on the fact that the sample uses class break renderer. You can do the same using a simple renderer. The point is you can use &lt;SPAN class="pln" style="color: #595959;"&gt;drawingOptions to change the renderer that is returned from ArcGIS Server.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 17:25:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/replace-legend-data-from-arcgis-server-with/m-p/693686#M64478</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-11-24T17:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Legend data from ArcGIS Server with simplemarker symbol</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/replace-legend-data-from-arcgis-server-with/m-p/693687#M64479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will give this a shot and i will let you know if it works. Give me a few Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 17:51:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/replace-legend-data-from-arcgis-server-with/m-p/693687#M64479</guid>
      <dc:creator>MosesAsuquo</dc:creator>
      <dc:date>2015-11-24T17:51:13Z</dc:date>
    </item>
  </channel>
</rss>

