Shells Module
The Shells Module implements the HTML5 Viewer's three interfaces ("shells") that enable the Viewer to work on different types of device. The three shells are:
-
Desktop: For running the Viewer on desktop computers.
-
Tablet: For running the Viewer on tablets.
-
Handheld: For running the Viewer on handheld devices like smartphones.
The shells control the layout and the layout's behavior on the different types of device. A shell is a view that hosts a number of regions, along with some behavior to handle resizing and layout concerns.
Customizing the Viewer
If you want to change the style settings for viewer elements, you need to update the CSS files contained in a Resources\Styles\Custom
location as described in the following information.
Update the CSS Files
To change the style settings for viewer elements, update the CSS files contained in a Resources\Styles\Custom
directory.
The Resources\Styles\Custom
directories are located in:
-
inetpub\wwwroot\<viewer-directory>\
, where<viewer-directory>
is the location where the viewers are installed during the post-installation process. The default location isinetpub\wwwroot\Html5Viewer\
. -
The VertiGIS installation location within each site’s Viewer directory under
...Sites\<site-name>\Viewers\<viewer-name>\VirtualDirectory\
.
The following table summarizes the effect of changing the CSS files in the inetpub
directory or in a site's viewer directory.
Note that styles specified in the Management Pack for viewer elements take precedence over any updates for the equivalent elements in the CSS files.
To... | Update... | Located In... |
---|---|---|
Define styles for all interfaces in all sites. | common.css | Resources\Styles\Custom within the inetpub directory path. |
Define styles for a specific interface (desktop, handheld, or tablet) in all sites. |
The respective: Desktop.css Handheld.css Tablet.css |
Resources\Styles\Custom within the inetpub directory path. |
Define styles for all interfaces in a specific viewer within a site. | common.css | Resources\Styles\Custom within the ...Sites\<site-name>\... directory path. |
Define styles for a specific interface (desktop, handheld, or tablet) for a specific viewer within a site. |
The respective: Desktop.css Handheld.css Tablet.css |
Resources\Styles\Custom within the ...Sites\<site-name>\... directory path. |
The advantage of making style changes in the CSS files in the Resources\Styles\Custom
folder is that they are not overwritten when updating the HTML5 Viewer.
Upgrade Considerations
If you are upgrading from an earlier version of the Viewer to version 4.14.0, and viewer styles have been customized, complete the following steps:
-
Ensure that all customized CSS files are backed up.
-
If the Upgrade Viewer Template dialog box opens during the upgrade process:
Select Keep Existing to preserve modified
Desktop.css
,Handheld.css
, andTablet.css
files inResources\Styles\Custom
located within theinetpub
directory,or,
Select Overwrite to reset the modified CSS files back to their defaults.
-
If the Upgrade Viewer Template dialog box does not open, continue with the upgrade process.
After upgrading the HTML5 Viewer, update the css
property settings in the Shells module as described above.
Configuration Properties
Module
-
css
: A list of file paths to the CSS files for this shell.Each interface has its own CSS file to manage the differences in screen size and shape. The files are
Desktop.css
,Tablet.css
, andHandheld.css
. Configured by default for each interface is the pathResources/Styles/Custom/common.css
. Also configured by default for the respective interfaces are theResources/Styles/Custom/
paths forDesktop.css
,Handheld.css
, andTablet.css
. See Customizing the Viewer for more information. -
homePanelVisible
: When this property is set totrue
, the region that hosts the Home Panel,HomePanelContainerRegion
, is visible when the viewer launches. If you want the user to be able to see the Home Panel when the viewer launches, set this property totrue
. The default isfalse
.To open the Home Panel when the viewer launches In the Desktop and Tablet interfaces, you must also set the
ShellViewModel
configuration property,dataFrameOpenByDefault
, totrue
. This is not necessary for the Handheld interface.
Views
-
ShellView
:-
resizeShell
: Set totrue
for the Handheld interface. This parameter does not apply to the Desktop or Tablet interfaces.
-
-
DataFrameViewContainer
: Noconfiguration
properties -
ModalViewContainerView
: Noconfiguration
properties -
ResultsRegionViewContainerView
:-
resizableParentRegion
: The resizable parent region. The default isBottomPanelRegion
. -
resizeY
: To allow the container to be vertically resized, set totrue
. The default istrue
.
-
-
FeatureEditingContainerView
:-
resizableParentRegion
: The resizable parent region. The default isLeftPanelRegion
. -
resizeX
: To allow the container to be horizontally resized, set totrue
. The default istrue
.
-
-
LayerDataContainerView
:-
resizableParentRegion
: The resizable parent region. The default isLeftPanelRegion
. -
resizeX
: To allow the container to be horizontally resized, set totrue
. The default istrue
.
-
-
HomePanelContainerView
:-
resizableParentRegion
: The resizable parent region. The default isLeftPanelRegion
. -
resizeX
: To allow the container to be horizontally resized, set totrue
. The default istrue
.
-
-
DataFrameResultsContainerView
:-
resizableParentRegion
: The resizable parent region. The default isLeftPanelRegion
. -
resizeX
: To allow the container to be horizontally resized, set totrue
. The default istrue
.
-
-
ProjectContainerView
:-
resizableParentRegion
: The resizable parent region. The default isLeftPanelRegion
. -
resizeX
: To allow the user to resize the container horizontally, setresizeX
totrue
. If you do not want users to be able to resize the container horizontally, setresizeX
tofalse
. The default istrue
.
-
-
SimpleQueryBuilderContainerView
: Noconfiguration
properties-
resizableParentRegion
: The resizable parent region. The default isLeftPanelRegion
. -
resizeX
: To allow the container to be horizontally resized, set totrue
. The default istrue
.
-
-
SimpleFilterBuilderContainerView
:-
resizableParentRegion
: The resizable parent region. The default isLeftPanelRegion
. -
resizeX
: To allow the container to be horizontally resized, set totrue
. The default istrue
.
-
OfflineMapsContainerView
:resizableParentRegion
: The resizable parent region. The default isLeftPanelRegion
.resizeX
: To allow the container to be horizontally resized, set to true; otherwise, set to false. The default istrue
.
CoordinatesContainerView
:resizableParentRegion
: The resizable parent region. The default isLeftPanelRegion
.resizeX
: To allow the container to be horizontally resized, set to true; otherwise, set to false. The default istrue
.
TimeSliderContainerView
:resizableParentRegion
: The resizable parent region. The default isLeftPanelRegion
.resizeX
: To allow the container to be horizontally resized, set to true; otherwise, set to false. The default istrue
.
ProjectContainerView
:resizableParentRegion
: The resizable parent region. The default isLeftPanelRegion
.resizeX
: To allow the container to be horizontally resized, set to true; otherwise, set to false. The default istrue
.
LayerAdditionContainerView
:resizableParentRegion
: The resizable parent region. The default isLeftPanelRegion
.resizeX
: To allow the container to be horizontally resized, set to true; otherwise, set to false. The default istrue
.
-
DrawingOrderContainerView
:-
resizableParentRegion
: The resizable parent region. The default isLeftPanelRegion
. -
resizeX
: To allow the container to be horizontally resized, set to true; otherwise, set to false. The default istrue
.
-
-
BottomPanelViewContainerView
: (Handheld interface only) Noconfiguration
properties -
ResultsViewContainerView
: (Handheld interface only) Noconfiguration
properties -
MiscContainerView
: (Handheld interface only) Noconfiguration
properties -
ModalContainerView
: (Handheld interface only) Noconfiguration
properties
View Models
-
ShellViewModel
:-
minWidth
: (Desktop and Tablet interfaces only) The minimum width to which the Data Frame can be resized. The default width is200
pixels. Alternatively, you can specify the amount as a percentage string, for example,"10%"
. -
maxWidth
: (Desktop and Tablet interfaces only) The maximum width to which the Data Frame can be resized. The default width is500
pixels. Alternatively, you can specify the amount as a percentage string, for example,"50%"
. -
dataFrameWidth
: (Desktop and Tablet interfaces only) The width of the Data Frame in pixels. The default width is350
pixels. Alternatively, you can specify the amount as a percentage string, for example,"25%"
.Specifying the amount as a percentage string ensures the panel size remains in proportion to the browser window until the user resizes the panel.
-
dataFrameOpenByDefault
: Controls whether the Data Frame is open when the viewer launches. The default isfalse
. -
bottomRegionHeight
: (Desktop and Tablet interfaces only) The height of theResultsRegion
in pixels. TheResultsRegion
hosts theFeatureDetailsView
andResultsTableView
by default. The default is300
pixels. Alternatively, you can specify the amount as a percentage string, for example,"25%"
.Specifying the amount as a percentage string ensures the panel size remains in proportion to the browser window until the user resizes the panel.
-
openToMaximum
: (Handheld interface only) To have the bottom panel open to the maximum size by default, set totrue
. The default isfalse
. -
bottomPanelHeightPercent
: (Handheld interface only) The height of the bottom panel as a percentage. The default is75
.
-
-
DataFrameViewContainerViewModel
:-
defaultViewIcon
: The path to the icon to use if the view'siconUri
is not specified. -
containerRegionName
: The name of the region in which this view container is hosted. The default isDataRegion
. -
headerIsVisible
: Specifies whether or not the header in the view is visible. The default isfalse
. -
showHeaderForStandaloneViews
: Specifies whether or not to display the header if the view is a stand alone view. The default istrue
. -
backButtonOnRootView
: When set totrue
, this parameter displays the back button on the root view (the view with the value of0
configured inside the nodeordering
). The default isfalse
. -
showBackButtonAsX
: When set totrue
, the back button hasX
on it. When set tofalse
, the button is displayed withBack
written on it. The default istrue
. -
showHostedViews
: Whether or not to display the views hosted in this view model. The default isfalse
. -
resizeX
: To allow the container to be horizontally resized, set totrue
. The default istrue
. -
footerInsertMarkup
: Is the URI of the markup file to be hosted in the footer of a view container. -
footerInsertType
: The view type to be hosted in the footer of a view container. -
ordering
: A mapping of views and their order ranking starting with0
. A view with the rank of0
is the root view of a particular view container.
-
-
DataFrameResultsContainerViewModel
:-
containerRegionName
: Defines the name of the region in which this view container is hosted. The default isDataFrameResultsContainerRegion
. -
statusRegionName
: The region to use for status messages in the Results List. The default isDataFrameResultsStatusRegion
. -
headerIsVisible
: Defines whether or not the header in the view is visible. The default istrue
. -
backButtonOnRootView
: When set totrue
, this parameter displays the back button on the root view (the view with the value of0
configured inside the nodeordering
). The default isfalse
. -
showBackButtonAsX
: When set totrue
, the back button hasX
on it. When set tofalse
, the button is displayed withBack
written on it. The default isfalse
. -
showHostedViews
: Whether or not to display the views hosted in this view model. The default istrue
. -
ordering
: A mapping of views and their order ranking starting with0
. A view with the rank of0
is the root view of a particular view container.
-
-
LayerDataContainerViewModel
:-
containerRegionName
: Defines the name of the region in which this view container is hosted. The default isLayerDataContainerRegion
. -
headerIsVisible
: Defines whether or not the header in the view is visible. The default istrue
. -
backButtonOnRootView
: When set totrue
, this parameter displays the back button on the root view (the view with the value of0
configured inside the nodeordering
). The default isfalse
. -
showBackButtonAsX
: When set totrue
, the back button hasX
on it. When set tofalse
, the button is displayed withBack
written on it. The default isfalse
. -
showHostedViews
: Whether or not to display the views hosted in this view model. The default istrue
. -
ordering
: A mapping of views and their order ranking starting with0
. A view with the rank of0
is the root view of a particular view container.
-
-
HomePanelContainerViewModel
:-
containerRegionName
: Defines the name of the region in which this view container is hosted. The default isHomePanelContainerRegion
. -
headerIsVisible
: Defines whether or not the header in the view is visible. The default istrue
. -
backButtonOnRootView
: When set totrue
, this parameter displays the back button on the root view (the view with the value of0
configured inside the nodeordering
). The default isfalse
. -
showBackButtonAsX
: When set totrue
, the back button hasX
on it. When set tofalse
, the button is displayed withBack
written on it. The default isfalse
. -
showHostedViews
: Whether or not to display the views hosted in this view model. The default istrue
. -
ordering
: A mapping of views and their order ranking starting with0
. A view with the rank of0
is the root view of a particular view container.
-
-
FeatureEditingContainerViewModel
:-
containerRegionName
: Defines the name of the region in which this view container is hosted. The default isFeatureEditingContainerRegion
. -
headerIsVisible
: Defines whether or not the header in the view is visible. The default istrue
. -
backButtonOnRootView
: When set totrue
, this parameter displays the back button on the root view (the view with the value of0
configured inside the nodeordering
). The default istrue
. -
showBackButtonAsX
: When set totrue
, the back button hasX
on it. When set tofalse
, the button is displayed withBack
written on it. The default isfalse
. -
ordering
: A mapping of views and their order ranking starting with0
. A view with the rank of0
is the root view of a particular view container.
-
-
ModalViewContainerViewModel
:-
containerRegionName
: Defines the name of the region in which this view container is hosted. The default isModalWindowRegion
. -
backButtonOnRootView
: When set totrue
, this parameter displays the back button on the root view (the view with the value of0
configured inside the nodeordering
). The default isfalse
. -
showBackButtonAsX
: When set totrue
, the back button hasX
on it. When set tofalse
, the button is displayed withBack
written on it. The default istrue
. -
CloseOnEscape
: Whether or not the view closes when the user presses the Esc key. The default istrue
.
-
-
ResultsRegionViewContainerViewModel
:-
containerRegionName
: Defines the name of the region in which this view container is hosted. The default isResultsRegion
. -
statusRegionName
: The region to use for status messages in the Results Table. The default isResultsStatusRegion
. -
backButtonOnRootView
: When set totrue
, this parameter displays the back button on the root view (the view with the value of0
configured inside the nodeordering
). -
showBackButtonAsX
: When set totrue
, the back button hasX
on it. When set tofalse
, the button is displayed withBack
written on it. The default istrue
. -
showMaximizeButton
: When set totrue
, the maximize button is displayed. When set tofalse
, the maximize button is not displayed. The default istrue
. -
resizeY
: To allow the container to be vertically resized, set totrue
. The default istrue
. -
ordering
: A mapping of views and their order ranking starting with0
. A view with the rank of0
is the root view of a particular view container.
-
-
SimpleQueryBuilderViewContainerViewModel
:-
containerRegionName
: Defines the name of the region in which this view container is hosted. The default isSimpleQueryBuilderContainerRegion
. -
headerIsVisible
: Defines whether or not the header in the view is visible. The default istrue
. -
backButtonOnRootView
: When set totrue
, this parameter displays the back button on the root view (the view with the value of0
configured inside the nodeordering
). The default istrue
. -
showBackButtonAsX
: When set totrue
, the back button hasX
on it. When set tofalse
, the button is displayed withBack
written on it. The default istrue
. -
showHostedViews
: Whether or not to display the views hosted in this view model. The default istrue
. -
ordering
: A mapping of views and their order ranking starting with0
. A view with the rank of0
is the root view of a particular view container.
-
-
SimpleFilterBuilderViewContainerViewModel
:-
containerRegionName
: Defines the name of the region in which this view container is hosted. The default isSimpleFilterBuilderContainerRegion
. -
headerIsVisible
: Defines whether or not the header in the view is visible. The default istrue
. -
backButtonOnRootView
: When set totrue
, this parameter displays the back button on the root view (the view with the value of0
configured inside the nodeordering
). The default istrue
. -
showBackButtonAsX
: When set totrue
, the back button hasX
on it. When set tofalse
, the button is displayed withBack
written on it. The default istrue
. -
showHostedViews
: Whether or not to display the views hosted in this view model. The default istrue
. -
ordering
: A mapping of views and their order ranking starting with0
. A view with the rank of0
is the root view of a particular view container.
-
-
OfflineMapsContainerViewModel
:-
containerRegionName
: Defines the name of the region in which this view container is hosted. The default isOfflineMapsContainerRegion
. -
headerIsVisible
: Defines whether or not the header in the view is visible. The default istrue
. -
backButtonOnRootView
: When set totrue
, this parameter displays the back button on the root view (the view with the value of0
configured inside the nodeordering
). The default istrue
. -
showBackButtonAsX
: When set totrue
, the back button hasX
on it. When set tofalse
, the button is displayed withBack
written on it. The default isfalse
. -
showHostedViews
: Whether or not to display the views hosted in this view model. The default istrue
. -
ordering
: A mapping of views and their order ranking starting with0
. A view with the rank of0
is the root view of a particular view container.
-
-
CoordinatesContainerViewModel
:-
containerRegionName
: Defines the name of the region in which this view container is hosted. The default isCoordinatesContainerRegion
. -
headerIsVisible
: Defines whether or not the header in the view is visible. The default istrue
. -
backButtonOnRootView
: When set totrue
, this parameter displays the back button on the root view (the view with the value of0
configured inside the nodeordering
). The default istrue
. -
showBackButtonAsX
: When set totrue
, the back button hasX
on it. When set tofalse
, the button is displayed withBack
written on it. The default istrue
. -
showHostedViews
: Whether or not to display the views hosted in this view model. The default istrue
. -
ordering
: A mapping of views and their order ranking starting with0
. A view with the rank of0
is the root view of a particular view container.
-
-
TimeSliderContainerViewModel
:-
containerRegionName
: Defines the name of the region in which this view container is hosted. The default isTimeSliderContainerRegion
. -
headerIsVisible
: Defines whether or not the header in the view is visible. The default istrue
. -
backButtonOnRootView
: When set totrue
, this parameter displays the back button on the root view (the view with the value of0
configured inside the nodeordering
). The default istrue
. -
showBackButtonAsX
: When set totrue
, the back button hasX
on it. When set tofalse
, the button is displayed withBack
written on it. The default istrue
. -
showHostedViews
: Whether or not to display the views hosted in this view model. The default istrue
. -
ordering
: A mapping of views and their order ranking starting with0
. A view with the rank of0
is the root view of a particular view container.
-
-
ProjectContainerViewModel
:-
containerRegionName
: The name of the region in which this view container is hosted. The default isModalWindowRegion
. -
headerIsVisible
: Defines whether or not the header in the view is visible. The default istrue
. -
backButtonOnRootView
: WhenbackButtonOnRootView
is set totrue
, the back button displays on the root view (the view with the value of0
configured inside the nodeordering
). The default isfalse
. -
showBackButtonAsX
: WhenshowBackButtonAsX
is set totrue
, the back button hasX
on it. WhenshowBackButtonAsX
is set tofalse
, the button is displayed withBack
written on it. The default istrue
. -
showHostedViews
: Whether or not to display the views hosted in this view model. The default istrue
. -
ordering
: A mapping of views and their order ranking starting with0
. A view with the rank of0
is the root view of a particular view container.
-
-
LayerAdditionContainerViewModel
:-
containerRegionName
: Defines the name of the region in which this view container is hosted. The default isLayerAdditionContainerRegion
. -
headerIsVisible
: Defines whether or not the header in the view is visible. The default istrue
. -
backButtonOnRootView
: When set totrue
, this parameter displays the back button on the root view (the view with the value of0
configured inside the nodeordering
). The default istrue
. -
showBackButtonAsX
: When set totrue
, the back button hasX
on it.When set to
false
, the button is displayed withBack
written on it. The default istrue
. -
showHostedViews
: Whether or not to display the views hosted in this view model. The default istrue
. -
ordering
: A mapping of views and their order ranking starting with0
. A view with the rank of0
is the root view of a particular view container.
-
-
DrawingOrderContainerViewModel
:-
containerRegionName
: Defines the name of the region in which this view container is hosted. The default isDrawingOrderContainerRegion
. -
containerManagedTitle
: Defines the title of the bottom tab used when the Drawing Order panel is active in the viewer. The default value is a text key,@language-layerDrawingOrder-tabTitle
. -
headerIsVisible
: Defines whether or not the header in the view is visible. The default istrue
. -
backButtonOnRootView
: When set totrue
, this parameter displays the back button on the root view (the view with the value of0
configured inside the nodeordering
). The default istrue
. -
showBackButtonAsX
: When set totrue
, the back button hasX
on it. When set tofalse
, the button is displayed withBack
written on it. The default istrue
. -
showHostedViews
: Whether or not to display the views hosted in this view model. The default istrue
. -
ordering
: A mapping of views and their order ranking starting with0
. A view with the rank of0
is the root view of a particular view container.
-