<?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: create a ploygon by SketchEditor , but the label doesn't display in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-a-ploygon-by-sketcheditor-but-the-label/m-p/1111162#M5636</link>
    <description>&lt;P&gt;I solved the&amp;nbsp;&lt;SPAN&gt;problem, the geometry get from sketcheditor is not&amp;nbsp;topologically consistent. so I guess in PC it can't render as a polygon and in Android, it can't find the center point to show label. I use&amp;nbsp;&amp;nbsp;GeometryEngine.simplify to make it topologically consistent and now it render well in PC and Android.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope to be useful to you. ^_^&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Oct 2021 07:36:41 GMT</pubDate>
    <dc:creator>donkeyliao</dc:creator>
    <dc:date>2021-10-26T07:36:41Z</dc:date>
    <item>
      <title>create a ploygon by SketchEditor , but the label doesn't display</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-a-ploygon-by-sketcheditor-but-the-label/m-p/1111112#M5635</link>
      <description>&lt;P&gt;SDK: arcgis sdk for android 100.12.0&lt;/P&gt;&lt;P&gt;I used sketcheditor to create a polygon, and get the polygon points, then send the points to server.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are tow&amp;nbsp;problems I got:&lt;/P&gt;&lt;P&gt;1.In APP, I set the layer display label, but the created polygon doesn't display the label. The polygon create from js client dispaly&amp;nbsp;well.&lt;/P&gt;&lt;P&gt;2.In PC, I use the&amp;nbsp;coordinate which get from App but it doesn't display as a polygon, it only rendered the outline.&amp;nbsp;&lt;/P&gt;&lt;P&gt;the polygon display in PC:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="donkeyliao_1-1635219409959.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/26155i6BDD93BCF400D5C7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="donkeyliao_1-1635219409959.png" alt="donkeyliao_1-1635219409959.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the polygon display in Android:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="donkeyliao_2-1635219842864.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/26156i3E4830FC659C085C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="donkeyliao_2-1635219842864.png" alt="donkeyliao_2-1635219842864.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My android code to get the polygon points:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Polygon polygon = (Polygon) GeometryEngine.project(sketchEditor.getGeometry(), SpatialReferences.getWgs84());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PointCollection points = new PointCollection(polygon.getParts().getPartsAsPoints());&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I'm so confused, anyone can help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 03:49:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-a-ploygon-by-sketcheditor-but-the-label/m-p/1111112#M5635</guid>
      <dc:creator>donkeyliao</dc:creator>
      <dc:date>2021-10-26T03:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: create a ploygon by SketchEditor , but the label doesn't display</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-a-ploygon-by-sketcheditor-but-the-label/m-p/1111162#M5636</link>
      <description>&lt;P&gt;I solved the&amp;nbsp;&lt;SPAN&gt;problem, the geometry get from sketcheditor is not&amp;nbsp;topologically consistent. so I guess in PC it can't render as a polygon and in Android, it can't find the center point to show label. I use&amp;nbsp;&amp;nbsp;GeometryEngine.simplify to make it topologically consistent and now it render well in PC and Android.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope to be useful to you. ^_^&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 07:36:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-a-ploygon-by-sketcheditor-but-the-label/m-p/1111162#M5636</guid>
      <dc:creator>donkeyliao</dc:creator>
      <dc:date>2021-10-26T07:36:41Z</dc:date>
    </item>
  </channel>
</rss>

