Embedd just a map
Hello, I'd like to take a very simple GC site and embed it within our main website as just a map. An example would be for someone looking up something on our site and we would show a location map. No tools, search or anything. I'm having a hard time finding a way to do this.
The iFrame component is easy so no need to figure that part out. It's just the removing of all the toolbars, layers, context menus, search bar, etc.
Has anyone done this before?
Shawn
0
-
Hi Shawn,
This is possible and I'm pretty sure it's been done a few times. You will need to edit the Desktop.json.js file for the site and hide any aspects you don't want visible. For instance, here is a code sample for the "I Want To Menu" from the Desktop.json.js file -
"views": [
{
"id": "IWantToMenuButtonView",
"visible": true,
"viewModelId": "IWantToMenuViewModel",
......
and to hide it, you would simply change the visible property from true to false. You would need to do this for every component you want hidden. The default location for the Desktop.json file is -
C:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\Sites\{SiteName}\Viewers\{ViewerName}\VirtualDirectory\Resources\Config\Default\Desktop.json.js
and the tricky part would be knowing the names of the components. Right clicking a component and selecting "Inspect" and then viewing the code would be the method I would recommend.
Feel free to submit a support ticket if you need help with this. I would recommend doing it on a newly added viewer, so you don't change the existing viewer and to take a backup copy of the file before editing it.
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
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar