Select to view content in your preferred language

Change Symbol color

542
2
05-10-2010 10:25 AM
AndreSmit
Emerging Contributor
This should be easy I guess.

I'm trying to change the color of my SimpleMarkerSymbols added to my Map (when I click on it say). Any suggestions?
Tags (2)
0 Kudos
2 Replies
AndreSmit
Emerging Contributor
This is easy - simply change the symbol:

  <esri:SimpleMarkerSymbol id="bluecircle" size="15" color="0x0000FF" style="circle" alpha="0.5"/>
  <esri:SimpleMarkerSymbol id="redcircle" size="15" color="0xFF0000" style="circle" alpha="1.0"/>

//Initially
var g:Graphic = new Graphic(p, bluecircle);


//then later
g.symbol=redcircle;

0 Kudos
AndreSmit
Emerging Contributor
Here's an example showing rock quarries in Texas. Data is retrieved from an SQL database server using python and mod_wsgi on an Apache server:

http://pavements2.ce.utexas.edu/quarry2/index.html

Right click on the datagrid to view the source.
0 Kudos