<?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: Polygon symbol fill is not working as expected in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polygon-symbol-fill-is-not-working-as-expected/m-p/218142#M20248</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to reverse the order of the vertices:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[51.50685501097203,25.308767846478304],&lt;BR /&gt;[51.513163566565964, 25.30671163006852],&lt;/P&gt;&lt;P&gt;[51.51376438138189, 25.30069796675457],&lt;/P&gt;&lt;P&gt;[51.50848579403868, 25.29557641823031],&lt;/P&gt;&lt;P&gt;[51.49908733365672, 25.296274823945666],&lt;/P&gt;&lt;P&gt;[51.49526786801695, 25.300775564312445],&lt;BR /&gt;[51.497327804536326, 25.306129675695274],&lt;/P&gt;&lt;P&gt;[51.50685501097203,25.308767846478304]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html"&gt;documentation&lt;/A&gt;:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Clockwise &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html#rings"&gt;rings&lt;/A&gt; are filled and counterclockwise rings are considered holes.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Sep 2019 12:42:59 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2019-09-17T12:42:59Z</dc:date>
    <item>
      <title>Polygon symbol fill is not working as expected</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polygon-symbol-fill-is-not-working-as-expected/m-p/218141#M20247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear team,&lt;/P&gt;&lt;P&gt;The below coordinates do not work for fill symbol. The fill color is not coming. Please provide support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[51.50685501097203, 25.308767846478304],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[51.497327804536326, 25.306129675695274],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[51.49526786801695, 25.300775564312445],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[51.49908733365672, 25.296274823945666],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[51.50848579403868, 25.29557641823031],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[51.51376438138189, 25.30069796675457],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[51.513163566565964, 25.30671163006852],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[51.50685501097203, 25.308767846478304]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Example -&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&lt;BR /&gt; &amp;lt;head&amp;gt;&lt;BR /&gt; &amp;lt;meta charset="utf-8" /&amp;gt;&lt;BR /&gt; &amp;lt;meta&lt;BR /&gt; name="viewport"&lt;BR /&gt; content="initial-scale=1,maximum-scale=1,user-scalable=no"&lt;BR /&gt; /&amp;gt;&lt;BR /&gt; &amp;lt;title&amp;gt;Intro to graphics - 4.12&amp;lt;/title&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;link&lt;BR /&gt; rel="stylesheet"&lt;BR /&gt; href="https://js.arcgis.com/4.12/esri/themes/dark/main.css"&lt;BR /&gt; /&amp;gt;&lt;BR /&gt; &amp;lt;script src="https://js.arcgis.com/4.12/"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;style&amp;gt;&lt;BR /&gt; html,&lt;BR /&gt; body,&lt;BR /&gt; #viewDiv {&lt;BR /&gt; padding: 0;&lt;BR /&gt; margin: 0;&lt;BR /&gt; height: 100%;&lt;BR /&gt; width: 100%;&lt;BR /&gt; }&lt;BR /&gt; &amp;lt;/style&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script&amp;gt;&lt;BR /&gt; require(["esri/Map", "esri/views/MapView", "esri/Graphic"], function(&lt;BR /&gt; Map,&lt;BR /&gt; MapView,&lt;BR /&gt; Graphic&lt;BR /&gt; ) {&lt;BR /&gt; var map = new Map({&lt;BR /&gt; basemap: "hybrid"&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;var view = new MapView({&lt;BR /&gt; center: [-80, 35],&lt;BR /&gt; container: "viewDiv",&lt;BR /&gt; map: map,&lt;BR /&gt; zoom: 3&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;/*************************&lt;BR /&gt; * Create a point graphic&lt;BR /&gt; *************************/&lt;/P&gt;&lt;P&gt;// First create a point geometry (this is the location of the Titanic)&lt;BR /&gt; var point = {&lt;BR /&gt; type: "point", // autocasts as new Point()&lt;BR /&gt; longitude: -49.97,&lt;BR /&gt; latitude: 41.73&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;// Create a symbol for drawing the point&lt;BR /&gt; var markerSymbol = {&lt;BR /&gt; type: "simple-marker", // autocasts as new SimpleMarkerSymbol()&lt;BR /&gt; color: [226, 119, 40],&lt;BR /&gt; outline: {&lt;BR /&gt; // autocasts as new SimpleLineSymbol()&lt;BR /&gt; color: [255, 255, 255],&lt;BR /&gt; width: 2&lt;BR /&gt; }&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;// Create a graphic and add the geometry and symbol to it&lt;BR /&gt; var pointGraphic = new Graphic({&lt;BR /&gt; geometry: point,&lt;BR /&gt; symbol: markerSymbol&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;/****************************&lt;BR /&gt; * Create a polyline graphic&lt;BR /&gt; ****************************/&lt;/P&gt;&lt;P&gt;// First create a line geometry (this is the Keystone pipeline)&lt;BR /&gt; var polyline = {&lt;BR /&gt; type: "polyline", // autocasts as new Polyline()&lt;BR /&gt; paths: [[-111.3, 52.68], [-98, 49.5], [-93.94, 29.89]]&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;// Create a symbol for drawing the line&lt;BR /&gt; var lineSymbol = {&lt;BR /&gt; type: "simple-line", // autocasts as SimpleLineSymbol()&lt;BR /&gt; color: [226, 119, 40],&lt;BR /&gt; width: 4&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;// Create an object for storing attributes related to the line&lt;BR /&gt; var lineAtt = {&lt;BR /&gt; Name: "Keystone Pipeline",&lt;BR /&gt; Owner: "TransCanada",&lt;BR /&gt; Length: "3,456 km"&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;/*******************************************&lt;BR /&gt; * Create a new graphic and add the geometry,&lt;BR /&gt; * symbol, and attributes to it. You may also&lt;BR /&gt; * add a simple PopupTemplate to the graphic.&lt;BR /&gt; * This allows users to view the graphic's&lt;BR /&gt; * attributes when it is clicked.&lt;BR /&gt; ******************************************/&lt;BR /&gt; var polylineGraphic = new Graphic({&lt;BR /&gt; geometry: polyline,&lt;BR /&gt; symbol: lineSymbol,&lt;BR /&gt; attributes: lineAtt,&lt;BR /&gt; popupTemplate: {&lt;BR /&gt; // autocasts as new PopupTemplate()&lt;BR /&gt; title: "{Name}",&lt;BR /&gt; content: [&lt;BR /&gt; {&lt;BR /&gt; type: "fields",&lt;BR /&gt; fieldInfos: [&lt;BR /&gt; {&lt;BR /&gt; fieldName: "Name"&lt;BR /&gt; },&lt;BR /&gt; {&lt;BR /&gt; fieldName: "Owner"&lt;BR /&gt; },&lt;BR /&gt; {&lt;BR /&gt; fieldName: "Length"&lt;BR /&gt; }&lt;BR /&gt; ]&lt;BR /&gt; }&lt;BR /&gt; ]&lt;BR /&gt; }&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;/***************************&lt;BR /&gt; * Create a polygon graphic&lt;BR /&gt; ***************************/&lt;/P&gt;&lt;P&gt;// Create a polygon geometry&lt;BR /&gt; var polygon = {&lt;BR /&gt; type: "polygon", // autocasts as new Polygon()&lt;BR /&gt; rings: [&lt;BR /&gt; [51.50685501097203, 25.308767846478304],&lt;BR /&gt; [51.497327804536326, 25.306129675695274],&lt;BR /&gt; [51.49526786801695, 25.300775564312445],&lt;BR /&gt; [51.49908733365672, 25.296274823945666],&lt;BR /&gt; [51.50848579403868, 25.29557641823031],&lt;BR /&gt; [51.51376438138189, 25.30069796675457],&lt;BR /&gt; [51.513163566565964, 25.30671163006852],&lt;BR /&gt; [51.50685501097203, 25.308767846478304]&lt;BR /&gt; ]&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;// Create a symbol for rendering the graphic&lt;BR /&gt; var fillSymbol = {&lt;BR /&gt; type: "simple-fill", // autocasts as new SimpleFillSymbol()&lt;BR /&gt; color: [227, 139, 79, 0.8],&lt;BR /&gt; outline: {&lt;BR /&gt; // autocasts as new SimpleLineSymbol()&lt;BR /&gt; color: [255, 255, 255],&lt;BR /&gt; width: 1&lt;BR /&gt; }&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;// Add the geometry and symbol to a new graphic&lt;BR /&gt; var polygonGraphic = new Graphic({&lt;BR /&gt; geometry: polygon,&lt;BR /&gt; symbol: fillSymbol&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;// Add the graphics to the view's graphics layer&lt;BR /&gt; view.graphics.addMany([pointGraphic, polylineGraphic, polygonGraphic]);&lt;BR /&gt; });&lt;BR /&gt; &amp;lt;/script&amp;gt;&lt;BR /&gt; &amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;body&amp;gt;&lt;BR /&gt; &amp;lt;div id="viewDiv"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2019 09:25:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polygon-symbol-fill-is-not-working-as-expected/m-p/218141#M20247</guid>
      <dc:creator>Lakshmi_NarayananSubramanian</dc:creator>
      <dc:date>2019-09-17T09:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Polygon symbol fill is not working as expected</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polygon-symbol-fill-is-not-working-as-expected/m-p/218142#M20248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to reverse the order of the vertices:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[51.50685501097203,25.308767846478304],&lt;BR /&gt;[51.513163566565964, 25.30671163006852],&lt;/P&gt;&lt;P&gt;[51.51376438138189, 25.30069796675457],&lt;/P&gt;&lt;P&gt;[51.50848579403868, 25.29557641823031],&lt;/P&gt;&lt;P&gt;[51.49908733365672, 25.296274823945666],&lt;/P&gt;&lt;P&gt;[51.49526786801695, 25.300775564312445],&lt;BR /&gt;[51.497327804536326, 25.306129675695274],&lt;/P&gt;&lt;P&gt;[51.50685501097203,25.308767846478304]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html"&gt;documentation&lt;/A&gt;:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Clockwise &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polygon.html#rings"&gt;rings&lt;/A&gt; are filled and counterclockwise rings are considered holes.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2019 12:42:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polygon-symbol-fill-is-not-working-as-expected/m-p/218142#M20248</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2019-09-17T12:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Polygon symbol fill is not working as expected</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polygon-symbol-fill-is-not-working-as-expected/m-p/218143#M20249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! That worked perfectly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2019 03:53:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/polygon-symbol-fill-is-not-working-as-expected/m-p/218143#M20249</guid>
      <dc:creator>Lakshmi_NarayananSubramanian</dc:creator>
      <dc:date>2019-09-18T03:53:42Z</dc:date>
    </item>
  </channel>
</rss>

