Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

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.

share|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. –  iamgin 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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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