Hoppa till huvudinnehållet

Toggling Labels in Flex

Kommentarer

2 kommentarer

  • Drew Millen

    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
  • Permanently deleted user

    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

Du måste logga in om du vill lämna en kommentar.