Linked Maps in Compact Toolbar
Hi everyone,
I've been working on customizing the compact toolbar by working directly in the JSON. I've been able to add flyouts and buttons to run workflows, but I'm finding my Linked Maps button is disabled. Has anyone else tried this?
Here is the syntax for my button in the Compact Toolbar module:
{
"id": "ShowExternalComponentViewButton",
"type": "button",
"iconUri": "Resources/Images/Icons/Toolbar/map-3rd-party-24.png",
"command": "ShowExternalComponentView",
"commandParameter": null,
"hideOnDisable": false,
"name": "@language-toolbar-3rd-party-maps-show-maps",
"tooltip": "@language-toolbar-3rd-party-maps-show-maps-tooltip"
}
Dave
0
-
Check out this Code Gallery thread:
https://support.geocortex.com/essentialsGSCCodeGallery?sub-nav=codegall&main-nav=essentials&#!/feedtype=SINGLE_ARTICLE_DETAIL&dc=Geocortex_Essentials_cg&criteria=BESTANSWERS&id=kA460000000blX2 (https://support.geocortex.com/essentialsGSCCodeGallery?sub-nav=codegall&main-nav=essentials&#!/feedtype=SINGLE_ARTICLE_DETAIL&dc=Geocortex_Essentials_cg&criteria=BESTANSWERS&id=kA460000000blX2)
And this Discussion:
https://support.geocortex.com/essentialsGSCForum?sub-nav=forum&main-nav=essentials&#!/feedtype=SINGLE_QUESTION_DETAIL&id=90660000000XZw2AAG (https://support.geocortex.com/essentialsGSCForum?sub-nav=forum&main-nav=essentials&#!/feedtype=SINGLE_QUESTION_DETAIL&id=90660000000XZw2AAG)0 -
I had missed adding the externalComponents configuration in the Integration module. Thank you Odiri. 0 -
I have the exact same question, however the links provided by Odiri back in 2016 seem to be obsolete. Are there new links to those discussions that someone can share?
Thank you!
Megan0 -
Hi Megan, finding those old links is difficult. Here's what the Integration module looks like in my desktop.json.js. I noticed I'm getting a street view not available message in this site right now, but I think it's unrelated to this code.
{
"moduleName": "Integration",
"moduleType": "geocortex.essentialsHtmlViewer.mapping.modules.integration.IntegrationModule",
"configuration": {
"allowedOrigins": []
},
"views": [
{
"id": "ExternalComponentView",
"viewModelId": "ExternalComponentViewModel",
"type": "geocortex.essentialsHtmlViewer.mapping.modules.integration.ExternalComponentView",
"markup": "Mapping/modules/Integration/ExternalComponentView.html",
"region": "BottomPanelRegion",
"visible": false,
"configuration": {}
}
],
"viewModels": [
{
"id": "ExternalComponentViewModel",
"type": "geocortex.essentialsHtmlViewer.mapping.modules.integration.ExternalComponentViewModel",
"configuration": {
"containerRegionName": "ExternalComponentRegion",
"containerRegionType": "geocortex.framework.ui.DivStackRegionAdapter",
"headerIsVisible": true,
"showXButton": true,
"showMaximizeButton": true,
"resizeY": true,
"selectorIconUri": "Resources/Images/Icons/Toolbar/map-24.png",
"selectorText": "@language-integration-selector-text",
"statusText": "@language-integration-viewpoint-indicator-desc",
"defaultComponents": [],
"externalComponents": [
{
"id": "googleMaps",
"displayName": "Google Maps",
"uri": "Resources/3rdPartyMaps/GoogleMaps.html",
"viewpointIndicatorUri": "Resources/Images/Icons/location-direction-red-32.png"
}
]
}
}
],
"deferLoading": true
},0 -
Thank you David! 0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
5 Kommentare