I have an County ArcServer REST mapservice, and I want to label the polygons.
Esri shows an nice example for a feature service but no examples for a dynamic Service.
Anyone know of an example?
Solved! Go to Solution.
the easiest thing to do would be to either turn on labels for the layer in the existing service or publish another service with labels.
the easiest thing to do would be to either turn on labels for the layer in the existing service or publish another service with labels.
Sometimes the simplest answer is the best, I'm not sure why I was trying to do this the hard way.
Bill,
We've dealt with this issue a few different ways. I'll list them to give you an idea of what you could do.
I like your answer, I've played with leaflet enough that I just now handle a dynamic service as a feature service to enable the better drawing, using color symbology, popups, and dynamic legends. Also putting the labels in a separate service allows you to put them in a layer switcher and the user can turn the layer on/off himself.
Bill, how have you created dynamic legends from feature services? I saw something on GitHub, but couldn't figure it out.
Send me an e-mail, I’ll send some commented code …
BTW, I like Carlisle, my parents were there when I went to Ship.
Bill Chappell
ITS Group - GIS Developer
800 North Pearl Street- Room 222
Menards, NY 12204
518-408-0185
William.Chappell@Its.ny.gov<mailto:William.Chappell@Its.ny.gov>