Zum Hauptinhalt gehen

"edit feature" missing on map tip in Tablet version of HTML 2.5

Kommentare

6 Kommentare

  • Dan Giersz
    It doesn't look like that is enabled by default. Add it to the MapTipActions section of the tablet.json.js (in bold) and make sure you include the comma between the new section and the runreport section:

     

    {

     

                  "id": "MapTipActions",

     

                  "description": "@language-menu-maptip-actions-desc",

     

                  "defaultIconUri": "Resources/Images/Icons/arrow-right-alt-24.png",

     

                  "items": [

     

                    {

     

                      "text": "@language-menu-maptip-actions-view-details",

     

                      "description": "@language-menu-maptip-actions-view-details-desc",

     

                      "iconUri": "Resources/Images/Icons/arrow-right-alt-24.png",

     

                      "batch": [

     

                        {

     

                          "command": "ShowFeatureDetails"

     

                        },

     

                        {

     

                          "command": "DeactivateView",

     

                          "commandParameter": "MapTipView"

     

                        }

     

                      ],

     

                      "hideOnDisable": false

     

                    },

     

                    {

     

                      "text": "@language-menu-run-report",

     

                      "description": "@language-menu-run-report-desc",

     

                      "command": "ListReports",

     

                      "commandParameter": "{{context}}",

     

                      "hideOnDisable": true

     

                    },

     

                    {

     

                      "text": "@language-feature-layer-edit",

     

                      "description": "@language-feature-layer-edit-desc",

     

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

     

                      "command": "StartEditingFeature",

     

                      "hideOnDisable": false

     

                    }

     

                  ]

     

                }
    0
  • Carmen Durham
    Dan,

     

    Thank you for responding.  I tried the above with no luck.  The option does not appear.  I have tried several times.  Here is how it looks copied from my tablet.json.js.  Has anyone else had problems with this?  I am editing a polygon layer.

     

                {

     

                  "id": "MapTipActions",

     

                  "description": "@language-menu-maptip-actions-desc",

     

                  "defaultIconUri": "Resources/Images/Icons/arrow-right-alt-24.png",

     

                  "items": [

     

                    {

     

                      "text": "@language-menu-maptip-actions-view-details",

     

                      "description": "@language-menu-maptip-actions-view-details-desc",

     

                      "iconUri": "Resources/Images/Icons/arrow-right-alt-24.png",

     

                      "hideOnDisable": false,

     

                      "batch": [

     

                        {

     

                          "command": "ShowFeatureDetails"

     

                        },

     

                        {

     

                          "command": "DeactivateView",

     

                          "commandParameter": "MapTipView"

     

                        }

     

                      ]

     

                    },

     

                    {

     

                      "text": "@language-menu-run-report",

     

                      "description": "@language-menu-run-report-desc",

     

                      "command": "ListReports",

     

                      "commandParameter": "{{context}}",

     

                      "hideOnDisable": true

     

                    },

     

             {

     

                      "text": "@language-feature-layer-edit",

     

                      "description": "@language-feature-layer-edit-desc",

     

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

     

                      "command": "StartEditingFeature",

     

                      "hideOnDisable": false

     

                    }

     

                  ]

     

                }
    0
  • Dan Giersz
    Your tablet.json.js is fine.  I copied it into a test viewer and the edit feature option appears in the map tips.

     

    Does the edit feature option appear in the desktop version?  Maybe something else is wrong, like the service is not set up correctly.

     

    And I have only been testing this in the tablet preview mode in GE Manager.  This may be an issue with iOS devices.
    0
  • Carmen Durham
    Thanks Dan.

     

    I checked the tablet preview mode in GE Manager and it doesn't appear there either (which I hadn't thought about until you mentioned it).

     

    The Edit Feature option appears and works as expected in the desktop version.  I am configuring each mode seperately vs. simultaneously.

     

    I am going to try hand type the code in case something wierd happened with the copy/paste from your posting (it was bold after all).  One time I had to do that for something else to work correctly (don't remember what).

     

    If that doesn't work, then I will contact support.

     

    Thanks,

     

    Carmen
    0
  • Carmen Durham
    Well, apparently it did have something to do with copying and pasting the text from the forum.

     

    What ended up working - I copied the code from the desktop.json.js directly into the tablet.json.js and the Edit Feature option appears on the map tip actions.  At least it shows up in the tablet preview mode within GE (which it didn't before).  I'll check on some tablets, but confident it will work.

     

    Thanks,

     

    Carmen
    0
  • Dan Giersz
    Glad to hear it!
    0

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