I see that it is possible to create a circular symbol (among other shapes) with SimpleMarkerSymbol.

I also see that it is possible to create a text symbol with TextSymbol.

Is it possible to combine these two to put a bit of text, centered, over the top of a circle element?


The easiest method is going to be to use two graphics layers with two different symbologies. (Or, if you have a large number of symbols and access to arcgis server, use a map service with the correct symbology underneath a graphics layer with blank symbols with no fill; that's what I do here: http://maps.stlouisco.com/police/beta)

It should be feasible to create a symbol class that does what you want. I want to do that for my application, so I will try to take some time later this week to figure that out.

| improve this answer | |
  • Is there any documentation available on creating custom symbol classes? – jsight Nov 1 '11 at 2:00
  • Not that I could find. It is going to take diving into the code base to figure out. – blord-castillo Nov 1 '11 at 11:04
  • I have the same problem as jsight, please, blord-castillo, could you extend your explanation about how to proceed? I am not sure of understanding what you say: I can publish my symbology in ArcGIS Server, but then, how do I use it on my ArcGIS JS side? How to associate to the textSymbol the symbology in my server? Thanks. – Irene Nov 30 '12 at 14:56
  • I am working on changing this process, but what I am doing in that sample is publishing a map service and using that to display the symbols on the map. Meanwhile, on top of the map service, is a separate graphics layers using data from the map service (I will change this to feature service in the feature) to create a graphics layer on top of the symbols. The graphics layer uses a blank symbology; but allows on click and mouse over interactions still – blord-castillo Nov 30 '12 at 15:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.