Hoppa till huvudinnehållet

Adding Layers dynamiclly

Kommentarer

6 kommentarer

  • Permanently deleted user

    Pete,

    I have the same need also. Have you made any progress on this?

    Chris Pyle had come up with a way to create a custom module to do this:

    http://support.geocortex.com/Forums/Thread.aspx?pageid=0&mid=2&ItemID=7&thread=45603

    But I'd like to be able to use a workflow to dynamically add a layer or dynamically set the query definition so that only those qualified features show. 

    It probably would be best to have the layer in the map service and then apply the filter on that layer. 

    0
  • Permanently deleted user

    If I am reading this correctly -- you want a workflow which takes control of displaying a feature class, so that you can run the workflow and dynamically change the WHERE clause which filters the feature class?

    I believe this is possible, with some caveats. Your only option for display on the map with Workflow are to use the "AddMarkup" Silverlight Viewer command. This will mean that you are displaying the feature class in the markup layer, and you probably won't be able to use it for regular markup anymore. You also won't be able to interact with this layer with any of the regular Silverlight Viewer tools -- it will just be a pretty picture to them.

    When there is native support for adding layers dynamically in the Silverlight Viewer, something like this in Workflow will probably become much easier to do.

    0
  • Permanently deleted user

    Thanks for all the inputs I will look into it.

    0
  • Permanently deleted user

    Jonathan and Pete,

    I'll look into using the markup also.

    However is it possible to create a workflow using the same concepts as in ESRI silverlight APIs:

    1. Add Layer Dynamically:

    http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#AddLayerDynamically

    2.  Apply a filter

    http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureLayerFiltering

    3. Apply a renderer

    http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureLayerRendering

    Renderers values could be stored in a table that you could put in the map service.

    Are these steps possible in a workflow? 

    You mentioned native support for adding layers dynamically - how far off is that quest?

    Thanks very much.

     

     

     

     

    0
  • Permanently deleted user

    As with ESRI's API, you can do this with our Viewer and our API by coding the feature directly, but there is no support in Workflow for doing this at this time. The ESRI Silverlight examples are generally transferable to our viewer (I haven't seen any yet that aren't), but the code will be different. As a general rule -- you are doing everything in the code behind with our architecture, while with ESRI's you put everything in the XAML file. ESRI can do this as their viewer has a much simpler architecture that is at the same time much less flexible and extensible in the long run.

    There is a Quickstart developer's guide available with our viewer download that gives examples of custom modules, and these can adapted to run ESRI's code examples without too much trouble.

    I cannot speak to the time of availability of any release or feature, but dynamically adding layers is on our radar. 

     

     

    0
  • Jeff Siemens

    Sonia, you can do this within a Workflow, but you will need to create a new External Activity to do it.  You can then handle the custom external activity in a custom module.

    Jeff

    0

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