Skip to main content

Is there any way to have a "Charts" tab open by default in the feature details?

Comments

4 comments

  • Permanently deleted user
    Hi Janice, 

     

    If you want to set the "View Additional Details" to open the chart view by default instead, look for the following module in the Desktop.json.js file

     

    (usually located at: C:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\Sites\<SiteName>\Viewers\<ViewerName>\VirtualDirectory\Resources\Config\Default)

     

    Under the command parameter, you want to change it from "ShowFeatureDetails" to "ShowChartingView".

     

    It should look something like this once you're done:

     

    "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": "ShowChartingView"

     

    Just a side note, when making changes in the JSON file, it applies to all layers within the site. So now all the layers by default will open the chart view when you click on the "View additional details" link regardless of whether the layer contains any charts. 

     

    I hope this helps.

     

    - Carmen
    0
  • Dan Giersz
    You could also try copying the charting item from the ResultsListActions and see if that does what you want.
    0
  • Permanently deleted user
    Hi Carmen,

     

    Thanks for your speedy response.  I had been going throught the Json files before you responded and in "FeatureDetailsExpandedViewModel" I changed the "FeatureAttributesProviderView": "default"  to "FeatureChartsProviderView": "default" .  Is there any difference between what you suggested and what I changed?

     

    "viewModels": [

     

              {

     

                "id": "FeatureDetailsExpandedViewModel",

     

                "type": "geocortex.essentialsHtmlViewer.mapping.modules.FeatureDetails.FeatureDetailsViewModel",

     

                "configuration": {

     

                  "defaultTabViewForLayer": {

     

                    "FeatureChartsProviderView": "default"              

     

                  },

     

     
    0
  • Permanently deleted user
    hi Dan,

     

    Thanks for your response as well.
    0

Please sign in to leave a comment.