Is there any way to have a "Charts" tab open by default in the feature details?
From my map tips, I click "View Additional Details" and my "Details" tab opens by deafult in the expanded view of the feature details. Is there a way to have the "Charts" tab (created from a data link) to open by default instead? Appreciate any tips.
Thanks, Janice
0
-
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.
- Carmen0 -
You could also try copying the charting item from the ResultsListActions and see if that does what you want. 0 -
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 -
hi Dan,
Thanks for your response as well.0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
4 kommentarer