<?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 smart mapping color ramp in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-smart-mapping-color-ramp/m-p/63109#M5519</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i too have same problem with colorramp in smart mapping, as well as how to change the range values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Sep 2015 11:29:15 GMT</pubDate>
    <dc:creator>SatyanarayanaNarmala</dc:creator>
    <dc:date>2015-09-09T11:29:15Z</dc:date>
    <item>
      <title>javascript smart mapping color ramp</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-smart-mapping-color-ramp/m-p/63105#M5515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I'm using the new smartMapping createClassedColorRender, but don't like the color ramp options that come for the default basemaps.&amp;nbsp; How can I change the color ramp to a simple dark blue to red ramp?&lt;/P&gt;&lt;P&gt;This is how I'm creating the renderer now (its for a feature layer)&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-dave&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;smartMapping.createClassedColorRenderer({&lt;/P&gt;&lt;P&gt;&amp;nbsp; layer: featureLayer,&lt;/P&gt;&lt;P&gt;&amp;nbsp; field: fieldName,&lt;/P&gt;&lt;P&gt;&amp;nbsp; basemap: "oceans",&lt;/P&gt;&lt;P&gt;&amp;nbsp; classificationMethod: "natural-breaks",&lt;/P&gt;&lt;P&gt;&amp;nbsp; numClasses: 10&lt;/P&gt;&lt;P&gt;}).then(function (response) {&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;&amp;nbsp; featureLayer.setRenderer(response.renderer);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; featureLayer.redraw();&lt;/P&gt;&lt;P&gt;&amp;nbsp; createLegend(map, featureLayer, fieldName);&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;map.addLayer(featureLayer);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 18:02:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-smart-mapping-color-ramp/m-p/63105#M5515</guid>
      <dc:creator>DavidChevrier</dc:creator>
      <dc:date>2015-08-19T18:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: javascript smart mapping color ramp</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-smart-mapping-color-ramp/m-p/63106#M5516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that you might be able to using scheme:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/esri.renderers.smartmapping-amd.html#createclassedcolorrenderer" title="https://developers.arcgis.com/javascript/jsapi/esri.renderers.smartmapping-amd.html#createclassedcolorrenderer"&gt;esri/renderers/smartMapping | API Reference | ArcGIS API for JavaScript&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wasn't able to pull an example, though - looking into that now... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 19:25:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-smart-mapping-color-ramp/m-p/63106#M5516</guid>
      <dc:creator>ChrisSmith7</dc:creator>
      <dc:date>2015-08-19T19:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: javascript smart mapping color ramp</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-smart-mapping-color-ramp/m-p/63107#M5517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I saw that and was thinking the same thing.&amp;nbsp; However I wasn't about exactly how to do that.&amp;nbsp; An example would be awesome though!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 20:08:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-smart-mapping-color-ramp/m-p/63107#M5517</guid>
      <dc:creator>DavidChevrier</dc:creator>
      <dc:date>2015-08-19T20:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: javascript smart mapping color ramp</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-smart-mapping-color-ramp/m-p/63108#M5518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I quickly gave a stab at what I think it's expecting based on the documentation, but it's throwing an error - "Error: smartMapping.createClassedColorRenderer: unable to find suitable colors for number of classes."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="447" src="https://community.esri.com/legacyfs/online/123064_pastedImage_1.png" style="width: 590px; height: 446.574585635359px;" width="590" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://developers.arcgis.com/javascript/sandbox/sandbox.html?sample=smartmapping_classesbycolor" title="http://developers.arcgis.com/javascript/sandbox/sandbox.html?sample=smartmapping_classesbycolor" rel="nofollow noopener noreferrer" target="_blank"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; function createRenderer(field) {
&amp;nbsp; //smart mapping functionality begins
&amp;nbsp; smartMapping.createClassedColorRenderer({
&amp;nbsp;&amp;nbsp;&amp;nbsp; layer: layer,
&amp;nbsp;&amp;nbsp;&amp;nbsp; field: field,
&amp;nbsp;&amp;nbsp;&amp;nbsp; basemap: map.getBasemap(),
&amp;nbsp;&amp;nbsp;&amp;nbsp; classificationMethod: "quantile",
&amp;nbsp;&amp;nbsp;&amp;nbsp; scheme: 
&amp;nbsp;&amp;nbsp; {
&amp;nbsp; primaryScheme: 
&amp;nbsp; { 
&amp;nbsp; colorsForClassBreaks: 
&amp;nbsp; {
&amp;nbsp; numClasses: 5,
&amp;nbsp; colors:
&amp;nbsp; [
&amp;nbsp; new Color("#FFE6E6"),
&amp;nbsp; new Color("#FFB2B2"),
&amp;nbsp; new Color("#FF8080"),
&amp;nbsp; new Color("#FF4D4D"),
&amp;nbsp; new Color("#FF1919")
&amp;nbsp; ]
&amp;nbsp; }
&amp;nbsp; }
&amp;nbsp;&amp;nbsp; }
&amp;nbsp; }).then(function (response) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; layer.setRenderer(response.renderer);
&amp;nbsp;&amp;nbsp;&amp;nbsp; layer.redraw();
&amp;nbsp;&amp;nbsp;&amp;nbsp; createLegend(map, layer, field);
&amp;nbsp; });
 }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:24:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-smart-mapping-color-ramp/m-p/63108#M5518</guid>
      <dc:creator>ChrisSmith7</dc:creator>
      <dc:date>2021-12-10T22:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: javascript smart mapping color ramp</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-smart-mapping-color-ramp/m-p/63109#M5519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i too have same problem with colorramp in smart mapping, as well as how to change the range values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 11:29:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-smart-mapping-color-ramp/m-p/63109#M5519</guid>
      <dc:creator>SatyanarayanaNarmala</dc:creator>
      <dc:date>2015-09-09T11:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: javascript smart mapping color ramp</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-smart-mapping-color-ramp/m-p/63110#M5520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We've recently implemented&amp;nbsp; SmartMapping in the JavaScript API.&amp;nbsp; Super cool&amp;nbsp; &lt;/P&gt;&lt;P&gt;We're also stuck and unable to change color ramp (except for using base map) in the JavaScript API?&amp;nbsp;&amp;nbsp; Anybody having any luck in the red to blue? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 08:11:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-smart-mapping-color-ramp/m-p/63110#M5520</guid>
      <dc:creator>SteveLewis</dc:creator>
      <dc:date>2015-09-29T08:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: javascript smart mapping color ramp</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-smart-mapping-color-ramp/m-p/63111#M5521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm glad other people are running into this problem.&amp;nbsp; I haven't been able to come up with a solution, but will need to soon.&amp;nbsp; I'm hoping someone from esri's development team chimes in.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 13:16:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-smart-mapping-color-ramp/m-p/63111#M5521</guid>
      <dc:creator>DavidChevrier</dc:creator>
      <dc:date>2015-09-29T13:16:31Z</dc:date>
    </item>
  </channel>
</rss>

