Select to view content in your preferred language

CompositeSymbol on FeatureLayer-- Urgent Help Required Please

558
1
08-05-2013 02:15 AM
omega_cancer
Frequent Contributor
Hello Everyone,
Does Feature Layer support Composite Symbols? I want to have a compositeSymbol on feature Layer but I am not able to make it work.

My code is simple

 <fx:Declarations>
         <esri:CompositeSymbol id="cms">
   <esri:PictureMarkerSymbol id="pms" source="eye-close.png" />
   <esri:TextSymbol text="ESRI" />
  </esri:CompositeSymbol>
       
    </fx:Declarations>

    <esri:Map id="myMap" width="100%" height="100%">
        <esri:ArcGISTiledMapServiceLayer url="http://myserver/arcgis/rest/services/map/MapServer"/>
        <esri:FeatureLayer id="shopFs" name="shopLayer" mode="snapshot"
         outFields=""

         symbol="{cms}"
         url="http://myserver/arcgis/rest/services/Features/Shops/FeatureServer/1"/>
    </esri:Map>




but only text symbol is appearing on map. Do I need to use a renderer for this? Is there any way out? Please help.


I am using AGS API Flex 3.4 and ArcGIS Server 10.1
Tags (2)
0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus
Abdul,

  There are a couple of bugs in the CompositeSymbol at 3.4. make sure that your maps wrapAround180="true" and see if that fixes it if not them downgrade to 3.3 and wait for 3.5 in September.

Link to 180 Thread:
forums.arcgis.com/threads/88786-PictureMarker-CompositeSymbol
0 Kudos