Zum Hauptinhalt gehen

Create New Feature tool

Kommentare

4 Kommentare

  • Permanently deleted user
    Steve,

     

    I launch the Create New Feature tool from the Home Panel, and it uses the following...

     

    <a href="command:ShowFeatureTemplatePicker">Add Observation</a>

     

    I assume the same would be used from a toolbar's button ?

     

    Hope that helps.

     

    GF
    0
  • Permanently deleted user
    the actual json code is in the Desktop.json.js file

     

             {

     

               "id": "CreateNewFeatureButton", 

     

               "type": "toggleButton", 

     

               "name": "Add Feature", 

     

               "tooltip": "Add a new fuel treatment / tactical on the map", 

     

               "iconUri": "Resources/Images/Icons/Toolbar/edit-24.png", 

     

               "hideOnDisable": false, 

     

               "toggleStateName": "FeaturePlacementState", 

     

               "toggleOn": {

     

                "command": "ShowFeatureTemplatePicker", 

     

                "commandParameter": null

     

               }, 
    0
  • Permanently deleted user
    The last line in the CreateNewFeatureButton excert from the json file is commandParameter: null.

     

    I'm looking for the proper json formating to add a feature to a specific layer.
    0
  • Zack Robison
    I've never included the layer parameter and haven't run into issues, but most of the viewers I've developed have only included a handful at most of editable feature layers and ususally that's just for attribute updates so no distinction is required.  I see in the Viewer Commands reference (https://docs.geocortex.com/essentials/gvh/2.10/commands-help/#/commands/Editing/ShowFeatureTemplatePicker) that the parameter is a "layer" but I suspect that this means the GCE map service id for the feature layer that you want to create in.
    0

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