keep highlighted feature when closing map tip
Is there a way in the json file(s) to keep a record highlighted, even after the map tip is closed? It makes sense that out of the box, the record unhighlights, but I have my own tool to clear the highlights. The issue is that the map tip can obstruct a highlighted record.
0
-
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.
Munhwan0 -
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 -
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 -
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.
Kommentarer
4 kommentarer