<?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 Styling a feature layer with CSS in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/styling-a-feature-layer-with-css/m-p/631732#M58956</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apologizing in advance for not being able to post code...I have a feature layer initialized from an empty feature collection. Based on user input I query a map service, retrieve a country geometry from the map server, and add it to the feature layer. I want to use CSS to style the feature using an animation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the CSS styling examples on GeoNet the feature layers are created by URL (or in one case from a CSV file) and already have features when they are added to the map. My feature layer is initialized with "styling: false", data attributes set to attributes being returned from the map server, and I have path statements in my CSS file. Styling is applied during the "graphics-draw" event; I put a break point in Firebug to make sure all the graphics in the layer are being passed through the function and that their attributes are described correctly. I also tried setting a class name on the feature layer and defining a CSS path with no attribute parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't figure out why it isn't working, which is why I wonder if the way my feature layer is implemented doesn't lend itself to CSS styling.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Dec 2014 14:19:41 GMT</pubDate>
    <dc:creator>TyroneLigon</dc:creator>
    <dc:date>2014-12-24T14:19:41Z</dc:date>
    <item>
      <title>Styling a feature layer with CSS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/styling-a-feature-layer-with-css/m-p/631732#M58956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apologizing in advance for not being able to post code...I have a feature layer initialized from an empty feature collection. Based on user input I query a map service, retrieve a country geometry from the map server, and add it to the feature layer. I want to use CSS to style the feature using an animation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the CSS styling examples on GeoNet the feature layers are created by URL (or in one case from a CSV file) and already have features when they are added to the map. My feature layer is initialized with "styling: false", data attributes set to attributes being returned from the map server, and I have path statements in my CSS file. Styling is applied during the "graphics-draw" event; I put a break point in Firebug to make sure all the graphics in the layer are being passed through the function and that their attributes are described correctly. I also tried setting a class name on the feature layer and defining a CSS path with no attribute parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't figure out why it isn't working, which is why I wonder if the way my feature layer is implemented doesn't lend itself to CSS styling.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 14:19:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/styling-a-feature-layer-with-css/m-p/631732#M58956</guid>
      <dc:creator>TyroneLigon</dc:creator>
      <dc:date>2014-12-24T14:19:41Z</dc:date>
    </item>
  </channel>
</rss>

