<?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: JavaScript API v3.5 SimpleRender in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-v3-5-simplerender/m-p/333934#M30845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joshua,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may be an issue with the version on the ArcGIS Server that you are running more than the API version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have noticed that some example code I created works with a 10.2 server but not with a 10.0 server (both are ESRI sample servers).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example 1 - &lt;A href="http://jsbin.com/cujeze/1" title="http://jsbin.com/cujeze/1"&gt;10.2 LayerDrawingOptions&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example 2 - &lt;A href="http://jsbin.com/majuj/1" title="http://jsbin.com/majuj/1"&gt;10.0 LayerDrawingOptions&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is the same - the only change is the different layer id on the old server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be good if someone else can confirm the server version is the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, make sure that your JS code doesn't mix the old style coding pattern with the new AMD module loading pattern. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14073904815453220" jivemacro_uid="_14073904815453220"&gt;
&lt;P&gt;var drawingOptions = new esri.layers.LayerDrawingOptions();&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should just be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14073904863405161 jive_text_macro" jivemacro_uid="_14073904863405161"&gt;
&lt;P&gt;var drawingOptions = new LayerDrawingOptions();&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Owen&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.spatialxp.com.au/"&gt;Spatial XP&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Aug 2014 05:48:29 GMT</pubDate>
    <dc:creator>OwenEarley</dc:creator>
    <dc:date>2014-08-07T05:48:29Z</dc:date>
    <item>
      <title>JavaScript API v3.5 SimpleRender</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-v3-5-simplerender/m-p/333933#M30844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;Good Afternoon Everyone. I am finally branching out of the WPF and SL API's into the JavaScript API. I have been working this for a couple days now and just don’t know if I am at a limitation of the API version I am using or if it’s a simple mistake. I am using v3.5 of the Javascript API and have included a copy of the code in the attachment. Basically everything is working find until I set the render to the dynamic map service layer. Once I&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;add the render nothing shows up. If it’s a limitation of the version we can stand up the newest but I wanted to run it by you first to make sure it's not a&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;dumb mistake. I had to remove the full server uri's because I am on a closed network but it should be easy enough to re-create. Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;V/R,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #222222;"&gt;Josh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 22:43:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-v3-5-simplerender/m-p/333933#M30844</guid>
      <dc:creator>JoshuaCorcoran</dc:creator>
      <dc:date>2014-08-06T22:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript API v3.5 SimpleRender</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-v3-5-simplerender/m-p/333934#M30845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joshua,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may be an issue with the version on the ArcGIS Server that you are running more than the API version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have noticed that some example code I created works with a 10.2 server but not with a 10.0 server (both are ESRI sample servers).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example 1 - &lt;A href="http://jsbin.com/cujeze/1" title="http://jsbin.com/cujeze/1"&gt;10.2 LayerDrawingOptions&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example 2 - &lt;A href="http://jsbin.com/majuj/1" title="http://jsbin.com/majuj/1"&gt;10.0 LayerDrawingOptions&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is the same - the only change is the different layer id on the old server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be good if someone else can confirm the server version is the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, make sure that your JS code doesn't mix the old style coding pattern with the new AMD module loading pattern. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14073904815453220" jivemacro_uid="_14073904815453220"&gt;
&lt;P&gt;var drawingOptions = new esri.layers.LayerDrawingOptions();&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should just be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14073904863405161 jive_text_macro" jivemacro_uid="_14073904863405161"&gt;
&lt;P&gt;var drawingOptions = new LayerDrawingOptions();&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Owen&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.spatialxp.com.au/"&gt;Spatial XP&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 05:48:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-api-v3-5-simplerender/m-p/333934#M30845</guid>
      <dc:creator>OwenEarley</dc:creator>
      <dc:date>2014-08-07T05:48:29Z</dc:date>
    </item>
  </channel>
</rss>

