<?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 GraphicsLayer + SimpleFillSymbol issue in 1.1.1 SDK in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/graphicslayer-simplefillsymbol-issue-in-1-1-1-sdk/m-p/317241#M2087</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm encountering a polygon drawing issue with the automatic black outline you get when using SimpleFillSymbol on the GraphicsLayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When using Australian coordinates (Elmore, Victoria, Australia) the automatically black outline does not follow the perimeter of the polygon. Instead, it is incorrectly drawn to infinity.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When using American coordinates (e.g. ESRI campus) the black outline does follow the perimeter of the polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, this feels like there's an arithmetic issue in the 1.1.1 SDK. The same code works correctly in the 1.0.1 SDK.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]15270[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following code example is a modified Hello World Map sample with code for GraphicsLayer with the Polygon and SimpleFillSymbol. Both Elmore and Redlands coordinates are provided with the Redlands commented out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;package com.esri.android.graphicsdemo;&amp;nbsp; import android.app.Activity; import android.graphics.Color; import android.os.Bundle;&amp;nbsp; import com.esri.android.map.GraphicsLayer; import com.esri.android.map.MapView; import com.esri.android.map.ags.ArcGISTiledMapServiceLayer; import com.esri.core.geometry.Envelope; import com.esri.core.geometry.GeometryEngine; import com.esri.core.geometry.Line; import com.esri.core.geometry.MultiPath; import com.esri.core.geometry.Point; import com.esri.core.geometry.Polygon; import com.esri.core.geometry.Segment; import com.esri.core.geometry.SpatialReference; import com.esri.core.map.Graphic; import com.esri.core.symbol.SimpleFillSymbol; import com.esri.core.symbol.SimpleMarkerSymbol;&amp;nbsp; public class GraphicsDemoActivity extends Activity {&amp;nbsp; MapView map = null;&amp;nbsp;&amp;nbsp; public void onCreate(Bundle savedInstanceState)&amp;nbsp; { &amp;nbsp; super.onCreate(savedInstanceState); &amp;nbsp; setContentView(R.layout.main);&amp;nbsp; &amp;nbsp; // Retrieve the map and initial extent from XML layout &amp;nbsp; map = (MapView)findViewById(R.id.map); &amp;nbsp; map.addLayer(new ArcGISTiledMapServiceLayer("" + &amp;nbsp; "http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"));&amp;nbsp; &amp;nbsp; // Prepare Web Mercator projection. &amp;nbsp; SpatialReference sr = SpatialReference.create(102100); &amp;nbsp;&amp;nbsp; &amp;nbsp; // Define 3 points in Elmore, Victoria, Australia.&amp;nbsp; &amp;nbsp; Point pt1 = GeometryEngine.project(144.5933, -36.5067, sr); &amp;nbsp; Point pt2 = GeometryEngine.project(144.6307, -36.5067, sr); &amp;nbsp; Point pt3 = GeometryEngine.project(144.6109, -36.4799, sr); &amp;nbsp;&amp;nbsp; &amp;nbsp; // Define 3 points on ESRI Redlands Campus &amp;nbsp; //Point pt1 = GeometryEngine.project(-117.200, 34.057, sr); &amp;nbsp; //Point pt2 = GeometryEngine.project(-117.198, 34.057, sr); &amp;nbsp; //Point pt3 = GeometryEngine.project(-117.199, 34.059, sr); &amp;nbsp;&amp;nbsp; &amp;nbsp; // Determine a simple bounding box for the points. &amp;nbsp; Envelope extent = new Envelope(pt1.getX(), pt1.getY(), pt2.getX(), pt3.getY()); &amp;nbsp; extent.inflate(10000, 10000);&amp;nbsp; &amp;nbsp; // Create a graphics layer and add it to the map. &amp;nbsp; GraphicsLayer graphicsLayer = new GraphicsLayer(); &amp;nbsp; map.addLayer(graphicsLayer); &amp;nbsp; map.setExtent(extent);&amp;nbsp; &amp;nbsp; // Add a GRAY filled polygon to the graphics layer.&amp;nbsp; &amp;nbsp; MultiPath poly = new Polygon(); &amp;nbsp; Segment seg = new Line(); &amp;nbsp; seg.setStart(pt1); &amp;nbsp; seg.setEnd(pt2); &amp;nbsp; poly.addSegment(seg,&amp;nbsp; true); &amp;nbsp; seg = new Line(); &amp;nbsp; seg.setStart(pt2); &amp;nbsp; seg.setEnd(pt3); &amp;nbsp; poly.addSegment(seg,&amp;nbsp; false); &amp;nbsp; seg = new Line(); &amp;nbsp; seg.setStart(pt3); &amp;nbsp; seg.setEnd(pt1); &amp;nbsp; poly.addSegment(seg,&amp;nbsp; false); &amp;nbsp; poly.closePathWithLine(); &amp;nbsp; graphicsLayer.addGraphic(new Graphic(poly, new SimpleFillSymbol(Color.GRAY)));&amp;nbsp; &amp;nbsp; // Add RED markers to the graphics layer. &amp;nbsp; graphicsLayer.addGraphic(new Graphic(pt1, new SimpleMarkerSymbol(Color.RED, 10, SimpleMarkerSymbol.STYLE.CIRCLE))); &amp;nbsp; graphicsLayer.addGraphic(new Graphic(pt2, new SimpleMarkerSymbol(Color.RED, 10, SimpleMarkerSymbol.STYLE.CIRCLE))); &amp;nbsp; graphicsLayer.addGraphic(new Graphic(pt3, new SimpleMarkerSymbol(Color.RED, 10, SimpleMarkerSymbol.STYLE.CIRCLE)));&amp;nbsp; }&amp;nbsp;&amp;nbsp; protected void onPause()&amp;nbsp; { &amp;nbsp; super.onPause(); &amp;nbsp; map.pause();&amp;nbsp; }&amp;nbsp;&amp;nbsp; protected void onResume()&amp;nbsp; { &amp;nbsp; super.onResume(); &amp;nbsp; map.unpause();&amp;nbsp; } }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 Jun 2012 23:34:15 GMT</pubDate>
    <dc:creator>StephenQuan</dc:creator>
    <dc:date>2012-06-17T23:34:15Z</dc:date>
    <item>
      <title>GraphicsLayer + SimpleFillSymbol issue in 1.1.1 SDK</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/graphicslayer-simplefillsymbol-issue-in-1-1-1-sdk/m-p/317241#M2087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm encountering a polygon drawing issue with the automatic black outline you get when using SimpleFillSymbol on the GraphicsLayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When using Australian coordinates (Elmore, Victoria, Australia) the automatically black outline does not follow the perimeter of the polygon. Instead, it is incorrectly drawn to infinity.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When using American coordinates (e.g. ESRI campus) the black outline does follow the perimeter of the polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, this feels like there's an arithmetic issue in the 1.1.1 SDK. The same code works correctly in the 1.0.1 SDK.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]15270[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following code example is a modified Hello World Map sample with code for GraphicsLayer with the Polygon and SimpleFillSymbol. Both Elmore and Redlands coordinates are provided with the Redlands commented out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;package com.esri.android.graphicsdemo;&amp;nbsp; import android.app.Activity; import android.graphics.Color; import android.os.Bundle;&amp;nbsp; import com.esri.android.map.GraphicsLayer; import com.esri.android.map.MapView; import com.esri.android.map.ags.ArcGISTiledMapServiceLayer; import com.esri.core.geometry.Envelope; import com.esri.core.geometry.GeometryEngine; import com.esri.core.geometry.Line; import com.esri.core.geometry.MultiPath; import com.esri.core.geometry.Point; import com.esri.core.geometry.Polygon; import com.esri.core.geometry.Segment; import com.esri.core.geometry.SpatialReference; import com.esri.core.map.Graphic; import com.esri.core.symbol.SimpleFillSymbol; import com.esri.core.symbol.SimpleMarkerSymbol;&amp;nbsp; public class GraphicsDemoActivity extends Activity {&amp;nbsp; MapView map = null;&amp;nbsp;&amp;nbsp; public void onCreate(Bundle savedInstanceState)&amp;nbsp; { &amp;nbsp; super.onCreate(savedInstanceState); &amp;nbsp; setContentView(R.layout.main);&amp;nbsp; &amp;nbsp; // Retrieve the map and initial extent from XML layout &amp;nbsp; map = (MapView)findViewById(R.id.map); &amp;nbsp; map.addLayer(new ArcGISTiledMapServiceLayer("" + &amp;nbsp; "http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"));&amp;nbsp; &amp;nbsp; // Prepare Web Mercator projection. &amp;nbsp; SpatialReference sr = SpatialReference.create(102100); &amp;nbsp;&amp;nbsp; &amp;nbsp; // Define 3 points in Elmore, Victoria, Australia.&amp;nbsp; &amp;nbsp; Point pt1 = GeometryEngine.project(144.5933, -36.5067, sr); &amp;nbsp; Point pt2 = GeometryEngine.project(144.6307, -36.5067, sr); &amp;nbsp; Point pt3 = GeometryEngine.project(144.6109, -36.4799, sr); &amp;nbsp;&amp;nbsp; &amp;nbsp; // Define 3 points on ESRI Redlands Campus &amp;nbsp; //Point pt1 = GeometryEngine.project(-117.200, 34.057, sr); &amp;nbsp; //Point pt2 = GeometryEngine.project(-117.198, 34.057, sr); &amp;nbsp; //Point pt3 = GeometryEngine.project(-117.199, 34.059, sr); &amp;nbsp;&amp;nbsp; &amp;nbsp; // Determine a simple bounding box for the points. &amp;nbsp; Envelope extent = new Envelope(pt1.getX(), pt1.getY(), pt2.getX(), pt3.getY()); &amp;nbsp; extent.inflate(10000, 10000);&amp;nbsp; &amp;nbsp; // Create a graphics layer and add it to the map. &amp;nbsp; GraphicsLayer graphicsLayer = new GraphicsLayer(); &amp;nbsp; map.addLayer(graphicsLayer); &amp;nbsp; map.setExtent(extent);&amp;nbsp; &amp;nbsp; // Add a GRAY filled polygon to the graphics layer.&amp;nbsp; &amp;nbsp; MultiPath poly = new Polygon(); &amp;nbsp; Segment seg = new Line(); &amp;nbsp; seg.setStart(pt1); &amp;nbsp; seg.setEnd(pt2); &amp;nbsp; poly.addSegment(seg,&amp;nbsp; true); &amp;nbsp; seg = new Line(); &amp;nbsp; seg.setStart(pt2); &amp;nbsp; seg.setEnd(pt3); &amp;nbsp; poly.addSegment(seg,&amp;nbsp; false); &amp;nbsp; seg = new Line(); &amp;nbsp; seg.setStart(pt3); &amp;nbsp; seg.setEnd(pt1); &amp;nbsp; poly.addSegment(seg,&amp;nbsp; false); &amp;nbsp; poly.closePathWithLine(); &amp;nbsp; graphicsLayer.addGraphic(new Graphic(poly, new SimpleFillSymbol(Color.GRAY)));&amp;nbsp; &amp;nbsp; // Add RED markers to the graphics layer. &amp;nbsp; graphicsLayer.addGraphic(new Graphic(pt1, new SimpleMarkerSymbol(Color.RED, 10, SimpleMarkerSymbol.STYLE.CIRCLE))); &amp;nbsp; graphicsLayer.addGraphic(new Graphic(pt2, new SimpleMarkerSymbol(Color.RED, 10, SimpleMarkerSymbol.STYLE.CIRCLE))); &amp;nbsp; graphicsLayer.addGraphic(new Graphic(pt3, new SimpleMarkerSymbol(Color.RED, 10, SimpleMarkerSymbol.STYLE.CIRCLE)));&amp;nbsp; }&amp;nbsp;&amp;nbsp; protected void onPause()&amp;nbsp; { &amp;nbsp; super.onPause(); &amp;nbsp; map.pause();&amp;nbsp; }&amp;nbsp;&amp;nbsp; protected void onResume()&amp;nbsp; { &amp;nbsp; super.onResume(); &amp;nbsp; map.unpause();&amp;nbsp; } }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jun 2012 23:34:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/graphicslayer-simplefillsymbol-issue-in-1-1-1-sdk/m-p/317241#M2087</guid>
      <dc:creator>StephenQuan</dc:creator>
      <dc:date>2012-06-17T23:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicsLayer + SimpleFillSymbol issue in 1.1.1 SDK</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/graphicslayer-simplefillsymbol-issue-in-1-1-1-sdk/m-p/317242#M2088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;These devices &lt;/SPAN&gt;&lt;STRONG&gt;DO&lt;/STRONG&gt;&lt;SPAN&gt; reproduce the issue:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Samsung Galaxy Tab 10.1, Android 3.2&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Samsung Gio, Android 2.2.1&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;These devices &lt;/SPAN&gt;&lt;STRONG&gt;DO NOT&lt;/STRONG&gt;&lt;SPAN&gt; reproduce the issue:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Samsung Nexus S, Android 4.0.4&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Samsung Tab 7, Android 2.3.3&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;HTC Desire, Android 2.2&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Emulator with GPU emulation, Android 4.0.3&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;**EDIT** When testing on the older 1.0.1 SDK the issue doesn't occur on the all of the above devices.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 03:26:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/graphicslayer-simplefillsymbol-issue-in-1-1-1-sdk/m-p/317242#M2088</guid>
      <dc:creator>StephenQuan</dc:creator>
      <dc:date>2012-06-19T03:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicsLayer + SimpleFillSymbol issue in 1.1.1 SDK</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/graphicslayer-simplefillsymbol-issue-in-1-1-1-sdk/m-p/317243#M2089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This appears to be fixed in the 2.0.0 SDK.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2012 23:49:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/graphicslayer-simplefillsymbol-issue-in-1-1-1-sdk/m-p/317243#M2089</guid>
      <dc:creator>StephenQuan</dc:creator>
      <dc:date>2012-06-25T23:49:53Z</dc:date>
    </item>
  </channel>
</rss>

