<?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 Can you render a mix of polygons, polylines and points in a FeatureLayer? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/can-you-render-a-mix-of-polygons-polylines-and/m-p/596207#M15296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have a MapIt service which points to a view containing a geography column that might be a polygon or a line depending on the record type.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can these be rendered using a single FeatureLayer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i.e., I would want to use the same brush for a SimpleLineSymbol and SimpleFillSymbol, but just have the polygons filled.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or do I need to split this into two separate FeatureLayers?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Jul 2010 02:02:36 GMT</pubDate>
    <dc:creator>DavidAllen-Williams</dc:creator>
    <dc:date>2010-07-02T02:02:36Z</dc:date>
    <item>
      <title>Can you render a mix of polygons, polylines and points in a FeatureLayer?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/can-you-render-a-mix-of-polygons-polylines-and/m-p/596207#M15296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have a MapIt service which points to a view containing a geography column that might be a polygon or a line depending on the record type.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can these be rendered using a single FeatureLayer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i.e., I would want to use the same brush for a SimpleLineSymbol and SimpleFillSymbol, but just have the polygons filled.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or do I need to split this into two separate FeatureLayers?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jul 2010 02:02:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/can-you-render-a-mix-of-polygons-polylines-and/m-p/596207#M15296</guid>
      <dc:creator>DavidAllen-Williams</dc:creator>
      <dc:date>2010-07-02T02:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can you render a mix of polygons, polylines and points in a FeatureLayer?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/can-you-render-a-mix-of-polygons-polylines-and/m-p/596208#M15297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The featurelayer expects a certain geometry type, so no you can't.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However the base GraphicsLayer does support a mix of geometry types, but the symbol for each graphic must match the geometry type of the geometry (ie fillsymbol for polygons, linesymbols for polylines, markersymbols for points/multipoints). You could create a custom IRenderer that returns the right symbol type based on the geometry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can still use the QueryTask to populate the graphicslayer against your "mixed table" from MapIt.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jul 2010 15:21:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/can-you-render-a-mix-of-polygons-polylines-and/m-p/596208#M15297</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-07-02T15:21:59Z</dc:date>
    </item>
  </channel>
</rss>

