Custom marker symbols

4204
12
02-26-2012 06:17 PM
GrantCarroll
Deactivated User
Hi all

I'm trying to find examples or get advice on how to create a custom marker symbol. Some background, I have a georss feed that provides my site with Hydrological information. What I want to be able to do is display on the map the current value at a monitoring site, along with an image that denotes what type of site that is, eg River flow, Water Temperature etc, The colour of the symbol will change based on a custom parameter in the georss feed which indicates what level of alert the site is in, eg Blue, Green ,Red etc. I can't seem to find any info on how to do this. I'm quite new to the javascript api, but I've done the same thing before in Silverlight, but obviously js is a very different beast.
Any advice or tips on where to find advice would be greatly appreciated.

Thanks
0 Kudos
12 Replies
ReneRubalcava
Honored Contributor
You wouldn't.
You'd add two graphics to the map, one with the target symbol and one with the text symbol.

Check out the "Find Address" example to see how it's done there.
http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jssamples/locator_address.html
0 Kudos
derekswingley1
Deactivated User
You wouldn't.
You'd add two graphics to the map, one with the target symbol and one with the text symbol.

Check out the "Find Address" example to see how it's done there.
http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jssamples/locator_address.html


Yep, you use the same geometry for each graphic, as shown in the sample.
0 Kudos
hcgis
by
Deactivated User
You wouldn't.
You'd add two graphics to the map, one with the target symbol and one with the text symbol.

Check out the "Find Address" example to see how it's done there.
http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jssamples/locator_address.html


Many thanks Rene and Derek, it helps a lot
0 Kudos