Hoppa till huvudinnehållet

Custom markup styles in the HTML 5 Viewer 2.9.0?

Kommentarer

9 kommentarer

  • Nelson Dobbs
    Phil,

     

    They can be found here:

     

    \\<servername>\c:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\Sites\Resources\Symbols

     

    They are split out into JSON files.  Make sure you use a JSON Validator or the symbols won't load when you open the viewer.
    0
  • Permanently deleted user
    This is great, thank you. 

     

    It appears that the colours are in rgba format with the a/alpha controlling the transparency, but the alpha value must be converted to a percentage out of 255 rather than just 0-1.0.

     

    Examples:

     

    100% (solid/opaque) = 255

     

    50% = 127.5

     

    5% (almost fully transparent) = 12.75

     

    phil.
    0
  • Don Neumann
    Hey Phil, does the new style selector let users create their own custom style on the fly (ie they choose the color, they choose the thickness and trasparency) or is it still just predefined options?

     

    Thanks!

     

    Don
    0
  • Permanently deleted user
    Yes, users can select their own custom style:

     

    - Fill and outline colour (both with transparency)

     

    - Line width

     

    - Line Style (dashes, dots etc)

     

    - Fill Style (horizontal, vertical, diagonal etc)

     

    User-added image

     

     
    0
  • Chris Roberts
    Ive been trying to nut this out for months!

     

    Thanks for the post Phil.
    0
  • Permanently deleted user
    This might help:  https://developers.arcgis.com/javascript/3/samples/playground/index.html

     

    You can graphically create the symbol, then bottom right hand panel there is a button to show the json.

     

    Looks like you just need to add a name tag.

     

    User-added image
    0
  • Chris Roberts
    I have managed to create a new point image symbol library for our emergency managemet point symbols, by exporting an mxd to a map service, open the REST endpoint and reading the json file. The copying out and reformating to the appropriate format.  That worked a treat ... so .. Yay.

     

    User-added image

     

    What I am wondering though .. is it possible to create Cartographic Line Symbols?  I can make new simpe ones with no problems, but  I cant seem to find the right syntax for somehting more complex.
    0
  • Permanently deleted user
    Chris, Great tip and the symbol library looks good.
    0
  • Don Neumann
    Phil, thank you very much for taking the time to answer. It is great to see that functionality will be available upon upgrade. Phil, Mark, Chris great tips!
    0

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