Skip to main content

How to turn off Export to Shapefile in HTML5 viewer?

Comments

1 comment

  • Permanently deleted user
    Hi Eve,

     

    You can remove the menu option by editing the Desktop.json file (C:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\Sites\SITENAME\Viewers\VIEWERNAME\VirtualDirectory\Resources\Config\Default\Desktop.json.js) and looking for ExportResultsTo commands.  For exporting to shapefile you will find it up to 3 times and removing the section -

     

                    {

     

                      "text": "@language-menu-export-results-to-shp",

     

                      "description": "@language-menu-export-results-to-shp-desc",

     

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

     

                      "hideOnDisable": true,

     

                      "command": "ExportResultsTo",

     

                      "commandParameter": {

     

                        "format": "shp",

     

                        "fsc": "{{context}}"

     

                      }

     

                    },

     

    Will remove the option from the menu.  I would recommend backing up the file before editing it just in case.  It's easy to remove a comma by accident and break the viewer.

     

    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 Partner
    0

Please sign in to leave a comment.