Pattern for developing custom symbols?

559
3
11-08-2012 11:49 AM
FredSpataro
Occasional Contributor III
Hello,

Has anyone figured out or found documentation on how to implement custom symbols?  I've been developing custom symbols for ArcMap and Silverlight/WPF API and would like to implement some of these for the Javascript API.  The pattern appears to be in place but it's not obvious what method or functions need to be implemented to perform the required "draw" or return the appropriate html/css/svg/etc...

Thanks
0 Kudos
3 Replies
TimRourke
New Contributor
Are you trying to create symbols on the server side or the client side?

On ArcGIS Server you can define the symbols in the ArcGIS desktop app when you put the map together.

On the client side you can use images for points, or specify colors and graphics for point line and polygon. In the API docs, you might want to start at the page http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/inside_renderers.htm. It has links to the various symbol classes. After that you might want to browse the samples for examples of creating symbols and graphics on the fly.
0 Kudos
FredSpataro
Occasional Contributor III
Hi Tim,
Thanks for the response.

Definitely client side, but I'm looking to move beyond the "Simple" symbol types that are already defined... for example there's no "PictureFillSymbol" in javascript api and no animations of current versions either.
0 Kudos
TimRourke
New Contributor
About all we've done with animations is using a GIF file in a PictureMarkerSymbol.

As for PictureFillSymbol, did you see this: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/picturefillsymbol.htm ?
0 Kudos