Toggling Labels in Flex
Has a way been developed to extend the Geocortex REST elements or otherwise implement toggling of feature labels in a Flex application? I'd rather not duplicate each layer I'd like to be able to toggle labels on.
-
Hi Martha,
You can extend the Geocortex Essentials REST API to provide custom "properties" or "extensions" on layer objects, or other objects belonging to a site. For example, you could decorate a layer with a property which says "AllowToggleLabels=true". For information on how to extend the Geocortex Essentials REST API, consult the Geocortex Resource Center: (http://resources.geocortex.com/essentials/apis/rest/) http://resources.geocortex.com/essentials/apis/rest/ . Under Concepts, navigate to the "Extending Geocortex Essentials REST Elements" topic.
Now, regarding toggling of labels specifically, you will not be able to achieve this using the current version of ArcGIS Server. The ability to toggle labels on/off within a particular layer is not a supported feature of ArcGIS Server 10.0; however, Esri has plans to enable dynamic layer rendering in ArcGIS Server 10.1 which will include the ability to toggle labels on layers.
Until that time, I'm afraid that using the client APIs (JS/Flex/Silverlight), your only option is to duplicate the layers.
I hope this information is helpful.
--Drew
0 -
Thanks, Drew,
Yes, we're using a custom property or two; they're very handy.
I was hoping some clever soul had figured this out. We'll have decide whether to wait or duplicate then.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare