Zum Hauptinhalt gehen

how to set polygon style in DisplayCaptureGeometry activity?

Kommentare

3 Kommentare

  • Hwa Saup Lee
    @Nico, thanks to your comment but it didn't work.  I changed the defaultPolygonMarkup in the desktop.json.js file but no change is visible on the viewer. 
    0
  • Permanently deleted user
    Hi Hwa Saup, 

     

    In the Silverlight viewer, you could use the UpdateGraphicsLayer activity to specify a renderer, then use the "Graphics Layer Name" on the DisplayCaptureGeometry activity to connect it to that graphics layer.  Using this combination unfortunately doesn't work in the HTML5 viewer.

     

    I believe the default renderer is set somewhere from compiled code rather than the viewer configuration files, so there's no supported way to change it at the moment.  I would suggest posting in the Ideas section to request a way to change the DisplayCatureGeometry's renderer, either through viewer configuration or activity configuration.

     

    It is possible to target the graphic it draws directly through the viewer's custom css files, but this would affect other tools that use the "map_graphics" layer as well, like Identify.  As an example, this works for the "polygon" shape: #map_graphics_layer g path{ fill: rgb(0, 255, 0)!important; fill-opacity: 0.75 !important; stroke: rgb(0, 255, 0) !important; }
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.