Hoppa till huvudinnehållet

how do you create a renderer for a new graphics layer using a picturemarkupsymbol

Kommentarer

5 kommentarer

  • Permanently deleted user
    Hi, 

     

    thank you for the workflow.  it did not work on my system, but no fault of you workflow.  i am getting an error:

     

    "There was a workflow error running activity: Exception has been thrown by the target of an invocation. Workflow 'place_photo' failed Unhandled exception: 'This function is not supported on this system. (Exception from HRESULT: 0x80070078)' in activity '1.2: UpdateGraphicsLayer'. This function is not supported on this system. (Exception from HRESULT: 0x80070078)"

     

    I have clue about it, but lets check versions.  i am at 4.4.2 geocortex and 2.5.1 html5 viewer, workflow designer at 4.4.2.21.  operating system at 2008 r2 standard.

     

    here is my renderer statement in the update graphics layer command:

     

    New ESRI.ArcGIS.Client.SimpleRenderer() With { .Symbol = new ESRI.ArcGIS.Client.Symbols.PictureMarkerSymbol() With { .Source = new System.Windows.Media.Imaging.BitmapImage(new Uri("https:\\ <my geocortex essentials path>/rest/sites/whb/VirtualDirectory/black_star_16x16.png", UriKind.Absolute),  new System.Net.Cache.RequestCachePolicy( System.Net.Cache.RequestCacheLevel.Reload)),.OffsetY=24}}

     

    i am not supposed to supply internal web address so i had to <my geocortex essentals path> instead but its just the url to the image on the site.

     

    Any clues to fixing this problem or will i need to upgrade (as i am planning to do).  but thanks for your help in any case.

     

    Jeff

     

     

    0
  • Srikanth Pilli
    Hi Jeff,

     

    We are also with same version of geocortex  essentials & html5 viewer.

     

    But, in our case when we used the customized image - I used the physical path(our image is in the E drive of the box on which Latitude geographics is installed), let me know this helps.

     

    Please find the code of line which we used at our end :

     

    New ESRI.ArcGIS.Client.SimpleRenderer() With { .Symbol = new ESRI.ArcGIS.Client.Symbols.PictureMarkerSymbol() With { .Source = new System.Windows.Media.Imaging.BitmapImage(new Uri("E:\Latitude Geographics\Default\REST Elements\Sites\SCREEN\Viewers\SV\VirtualDirectory\Resources\Images\flag-green-24x24.png", UriKind.Absolute),  new System.Net.Cache.RequestCachePolicy( System.Net.Cache.RequestCacheLevel.Reload)),.OffsetY=24}}

     

     

    If you are still facing issue, If you can send your workflow - I can look at it.

     

    Thanks

     

    Srikanth
    0
  • Permanently deleted user
    yes that code works for me. thank you. so i can interactively place a custom png file or jpg file at a point if the image is stored on disc.  so that works.  what i think i cannot do is place an image with an http address, say from a website or the like, without downloading it to disc first. so, bottom line, your code works when its an image stored on disc.  if its an image with a web address, that did not.  good to know though.

     

    thank you,

     

    Jeff
    0
  • Permanently deleted user
    Is there a fix for this?  We have a public-facing server and we do not want any reference to a local drive in our code on the server.  We have a virtual directory and need to be able to use that in the renderer.

     

     
    0
  • Ryan Kelley
    Has any traction been made on this issue? We too wanting to deploy a viewer externally, and don't want to expose a drive on the server, and would rather use the virtual directory url.
    0

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