Map tips - remove additional info/edit feature links
How can I remove the View Additional Details and Edit Feature links from the map tips dialogue?
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=90660000000TSNh&feoid=Body&refid=0EM60000000LvIb"_/_img_
0
-
Hi Rebecca,
Here is how I would approach this type of query.
1) it's most likely a config file change and in the Desktop.json.js file but if you look in the file you cannot see "View Additional Details". This is because it is in a language file and can customized to appear in different languages. Because of this I would get the key for the string. The key is stored in here -
C:\inetpub\wwwroot\Html5Viewer\Resources\Locales\Mapping.en-US.json
and if you look in this file for "View Additional Details" you will find the key name of -
language-menu-maptip-actions-view-details
2) if you now search the Desktop.json.js file for this name you will find it in this 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
}
]
},
{
If you remove the text in strikethrough font above you will hide the option to View Additional Details.
I hope this helps.
Regards,
Wayne Richard
Latitude Geographics Group Ltd.
Head Office: 300 – 1117 Wharf Street Victoria, BC Canada V8W 1T7
Tel: (250) 381-8130 | Fax: (250) 381-8132 | wrichard@latitudegeo.com
Developers of Geocortex web-based mapping software | www.geocortex.com
An Esri Platinum Business Partner0 -
Hi
I tried removing the section:
{
"text": "@language-feature-layer-edit",
"description": "@language-feature-layer-edit-desc",
"iconUri": "Resources/Images/Icons/Toolbar/feature-edit-24.png",
"command": "StartEditingFeature",
"hideOnDisable": false
}
as I wanted to get rid of Edit Feature (no editing in my site at all) but it doesnt seem to be reflected back to the app. I did this edit just in Desktop.json and refreshed/restarted web server as well as reload the site in the browser. Is there another step needed?
Thanks
Doug0 -
No other step required. As long as you edited the desktop.json.js for your site and you removed it from the "MapTipActions" section.
It also appears in the "FeatureActions" section so make sure you didn't just remove it from there, maybe?0 -
many thanks Dan - yes that is exactly what I had done! 0 -
Great! Thanks! I was able to also remove the edit features text by removing the last code block shown above (and the curly brackets on either side of it). 0
Please sign in to leave a comment.
Comments
5 comments