Mám County ArcServer REST mapovou službu a chci označit polygony.<\/P>
<\/P>
Esri ukazuje pěkný příklad pro feature service, ale žádné příklady pro dynamic Service.<\/P>
Někdo zná nějaký příklad? <\/P>
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.
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>
Bill, how have you created dynamic legends from feature services? I saw something on GitHub, but couldn't figure it out.
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,
We've dealt with this issue a few different ways. I'll list them to give you an idea of what you could do.
Sometimes the simplest answer is the best, I'm not sure why I was trying to do this the hard way.
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.