Hoppa till huvudinnehållet

keep highlighted feature when closing map tip

Kommentarer

4 kommentarer

  • Permanently deleted user
    Could you check your Desktop.json.js on the block of "moduleName": "MapTips", under which there should be 

     

    "behaviors": [

     

                {

     

                  "name": "MapTipOnCloseBehavior",

     

                  "event": "MapTipClosedEvent",

     

                  "commands": [

     

                    "ClearDefaultHighlights"

     

                  ]

     

                },

     

    the command 'ClearDefaultHightlights" is executed when 'MapTupOnClosedEvent" happens. So if you remove it from the Desktop.json.js. The highlights wil be there I think if I understand correctly your situation.

     

    Munhwan
    0
  • Ryan Kelley
    Thanks for the response Munwhan. I did try what you suggested before I posted my issue yesterday, without any luck. I have tried:

     

                {

     

                  "name": "MapTipOnCloseBehavior",

     

                  "event": "MapTipClosedEvent",

     

                  "commands": [

     

                    ""

     

                  ]

     

                },

     

    I have also tried:

     

                {

     

                  "name": "MapTipOnCloseBehavior",

     

                  "event": "MapTipClosedEvent",

     

                  "commands": [

     

                    "HighlightFeature"

     

                  ]

     

                },
    0
  • Permanently deleted user
    Try

     

                {

     

                  "name": "MapTipOnCloseBehavior",

     

                  "event": "MapTipClosedEvent",

     

                  "commands": []

     

                },

     

    btw, is your GVH available to the public? Then let me know so that I may check it out..
    0
  • Permanently deleted user
    Hi Munhwan,

     

    I tried the way you suggested:

     

    {

     

                  "name": "MapTipOnCloseBehavior",

     

                  "event": "MapTipClosedEvent",

     

                  "commands": []

     

     },

     

    Unfortunately removing "ClearDefaultHighlights" does not keep the highlights.

     

    Any ideas?

     

     
    0

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