Hoppa till huvudinnehållet

Layer Visualization: Image Symbology Type - how to add an image

Kommentarer

2 kommentarer

  • Permanently deleted user
    Hi Carmen,

     

    The process is a little complicated. I've documented it in a new knowledge base article (https://support.geocortex.com/essentialsGSCCodeGallery?sub-nav=codegall&main-nav=essentials&id=kA4f2000000fxSz) here .
    0
  • Chris Roberts
    Hi Carmen

     

    Heres what I did, its a bit of work but it achieved what i was after!

     

    1. create an mxd with the desired point symbology and published to arcgis server.

     

    2. opened the REST endpoint of layer in the service in a browser eg yourservername/arcgis/rest/services/servicename/MapServer/1

     

    3. clicked non the JSON link to open the json file

     

    4. copied the json scipting for the symbols to a text document and reformatted as per an exisitng image library file to get the syntax and styling correct 

     

    5. saved the file as .json to the \Sites\Resources\Symbols\image folder

     

    6. edited the desktop.json file for the viewer and added the library name eg:

     

       {

     

            "id": "PictureSymbolWidget",

     

            "type": "geocortex.essentialsHtmlViewer.mapping.infrastructure.symbology.PictureSymbolWidget",

     

            "markup": "Mapping/infrastructure/symbology/widgets/PictureSymbolWidget.html",

     

            "viewModelType": "geocortex.essentialsHtmlViewer.mapping.infrastructure.symbology.PictureSymbolWidgetViewModel",

     

            "libraryId": "Mapping.Infrastructure",

     

            "configuration": {

     

              "imageLibraries": [

     

                "Shapes",

     

                "Arrows",

     

                "A-Z",

     

                "Basic",

     

                "Business",

     

                "Cartographic",

     

                "Damage",

     

                "Disasters",

     

                "General Infrastructure",

     

                "Hazard Mapping", (added this)

     

                "National Park Service",

     

                "Numbers",

     

                "Outdoor Recreation",

     

                "People Places",

     

                "Points Of Interest",

     

                "Safety Health",

     

                "Transportation"

     

              ],

     

              "imageSize": {

     

                "min": 16,

     

                "max": 64,

     

                "value": 32,

     

                "step": 1

     

              }

     

            }

     

          },

     

    _img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=907f2000000fyka&feoid=Body&refid=0EMf2000000kAgn"_/_img_

     

    Hope that helps.  Happy to provide more detail if needed.
    0

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