Please check the attached file of pin image.
You do not work with the CSS for symbols in the JS API as they are mainly SVG graphics. You need to change the Symbol class for that graphic.
I have updated the image of a pin . please check it again then you might be clear what i am asking for
So are you setting the point symbol using a picturemarkersymbol?
OK now I understand. So one way to handle this is to get the pins geometry through a query and set the symbol you want to the graphic.
I have already added the symbol for a graph and that is for filling color of the polygon. but now i want to change the CSS of pins which are under the polygon.
Here is the code
var symbol = new SimpleFillSymbol( SimpleFillSymbol.STYLE_SOLID, new SimpleLineSymbol( SimpleLineSymbol.STYLE_SOLID, new Color([r,g,b,0.9]), 4 ),new Color([r,g,b,0.5]));
var graphic = new Graphic(query, symbol); map.graphics.add(graphic);
So not you set the symbol of the point for the FeatureLayer using a SimpleMarkerSymbol or a PictureMarkerSymbol then.
No i am not setting any symbol for the point of feature layer. I am setting for the color filling inside the polygon.
BUT you need to query and set the symbol for the pin that you want to change, unless you change the symbol in the map service. If you want to change it in JS then you need to assign a specific symbol to the whole FL or a specific graphic.
Retrieving data ...