Skip to main content

updated graphic layer is not showing on the map list

Comments

9 comments

  • Permanently deleted user
    I am also having this issue. According to one of your video tutorials, using the UpdateGraphicsLayer command should create a new layer in the layer list called "Graphics Layer". When I use this command, the Graphics are being rendered, but no layer is being added to the layer list. The video I am referring to is below. This video uses the silverlight viewer. Is this not available in the HTML 5 Viewer? I am using Geocortex 4.6.1 and GHV 2.7.

     

    https://support.geocortex.com/essentialsGSCVideo?sub-nav=videos&main-nav=essentials&feedtype=SINGLE_ARTICLE_DETAIL&criteria=BESTANSWERS&id=kA560000000CatPCAS
    0
  • Amanda Frech
    Hi Khalid and Cameron,

     

    Cameron is correct; in the Silverlight viewer the UpdateGraphicLayer activity will add new layers to the layer list, and in the HTML5 viewer it will not.

     

    We have an improvement request filed internally for this, GVH-2942. I will add you both as stakeholders.  According to the comments there, UpdateGraphicsLayer is working as intended right now because it's important for most uses of the activity to not add the layer to the layer list. That being said, I think that there is likely a demand for both behaviours to be made available. (https://support.geocortex.com/essentialsGSCIdeasDetail?c=09a6000000008RsAAI&id=08760000000TcRGAA0&categ=all&sub-nav=ideas&main-nav=essentials) Jordan recently posted this to the Ideas section as well, so you can vote or comment here  to help improve its visibility.

     

    Hope that helps,

     

    Amanda
    0
  • Permanently deleted user
    please add me to the list too. thanks
    0
  • Permanently deleted user
    Done. You may also want to vote for the idea (https://support.geocortex.com/essentialsGSCIdeasDetail?c=09a6000000008RsAAI&id=08760000000TcRGAA0&actType=comment&sub-nav=ideas&main-nav=essentials) I've posted here , as boosting its score will increase its visibility among our ideas.
    0
  • Permanently deleted user
    I would like to know how you even got the render to work, I get an error saying "The calling thread cannot access this object becauyse a different thread owns it".  I have used their input examples without altering and have tried using the JSON straight from ArcServer using the symbology of my choice but I get syntax and compiling ewrrors on the JSON using ESRI.ArcGIS.Client.Renderer.FromJson
    0
  • Permanently deleted user
    Hi Jacqueline,

     

    I can't be certain without seeing the workflow, but in my experience when I get that error it's usually because an activity is expecting a featureset but getting something else.  What kind of variable are you using for the "FeatureSet" property of the UpdateGraphicsLayer activity?  It looks like there may be an issue with the UpdateGraphicsLayer activity when using an IEnumerable<graphic>.

     

    -Amanda
    0
  • Permanently deleted user
    Hi All,

     

    I would like to know if there is a workaround for this issue, until now I think there is no root solution. Please add me to the stakeholders list.

     

    Also, why when using the out of the box tool (Add Data to Map), a graphic layer will be added to the layer list? otherwise this option is not availabe at the level of workflow!

     

    Thanks

     

    Best

     

    Majdoleen
    0
  • Mike Diss-Torrance
    I came up with temporary workaround till this get addressed. This is a lot more complicated than it should be, but it works.

     

    My issue was that I wanted to create way to reproject a shapefile into the projection used within the viewer, followed by displaying it in the map (graphic or whatever), with the ability to turn the layer on/off in the table of contents.

     

    1) I created a editable featureservice containing a point, polyline, and polygon featureclass.

     

    2) Through the GE Manager, I defined a filter on each of the layers to hide all the records (i.e OBJECTID <0). I'll explain this further down...

     

    3) In the step in my workflow where I have the featureset of the re-projected geometries, instead of adding them to the graphic layer, I inserted them into the featureclass.

     

    4) The results of the insert operation provide me with the OBJECTIDs. I use these OBJECTIDs to define a new layer defintion (i.e. OBJECTID like (123, 124, 125) )...

     

    5) I apply a buffer and zoom to the extent of these newly added records.

     

    The reason for the  filter and layer defintion is to only show the features that THIS user has uploaded. In a given day, this featureclass may contain multiple features from various users. Depending on how long you want the features to persist, we opted to truncate that featureclass every night.

     

    This is not a great solution, but it solves the issue for the time being.

     

    Mike
    0
  • Permanently deleted user
    Hi Mike,

     

    I think I am looking for a workflow simillar to yours, I want to add a polygon from our site and to be saved in our database, Is this available? may you please share your workflow with me?

     

    Thank you in advane

     

    Best

     

    Majdoleen

     

    MAjdoleen
    0

Please sign in to leave a comment.