Class CMMainContainer extends CMPanel
CMMainContainer Class
Main class to contain the other elements and objects that make up a CMMainContainer.
The elements for a CMMainContainer are held in an array,
Settings Group: MainContainer
Setting | Name | Type | Options | Default | Comments |
---|---|---|---|---|---|
Scene3D | 3D Scene | CMTYPE_BOOLEAN | false | true to create a 3D scene instead of a 2D scene | |
AllowMouseEvents | Allow Mouse Events | CMTYPE_BOOLEAN | true | false to create a static map | |
MobileSupported | Mobile Supported | CMTYPE_BOOLEAN | false | true to enable jestures on phones and pads | |
Resize | Resize | CMTYPE_BOOLEAN | false | true to have the map automatically resize when the window is resized | |
ImageFolder | Image Folder | CMTYPE_STRING | ../Images/ | path to the folder with the images for the main container (e.g. tool icons) | |
MapNumber | MapNumber | CMTYPE_INTEGER | 0 | true to have the map automatically resize when the window is resized | |
MainContainerElementID | MainContainerElementID | CMTYPE_STRING | CM_MapContainer | ||
MainContainerClassName | MainContainerClassName | CMTYPE_STRING | CM_MapContainer | ||
CanvasContainerID | CanvasContainerID | CMTYPE_STRING | CM_CanvasContainer | ||
CanvasContainerClassName | CanvasContainerClassName | CMTYPE_STRING | CM_CanvasContainer | ||
CanvasID | CanvasID | CMTYPE_STRING | CM_Canvas | ||
CanvasClassName | CanvasClassName | CMTYPE_STRING | CM_Canvas | ||
PanelFooterID | Footer Panel ID | CMTYPE_STRING | CM_MapFooter | ||
PanelToolID | Tool Panel ID | CMTYPE_STRING | CM_ToolContainer | ||
PanelButtonsID | Button Panel ID | CMTYPE_STRING | CM_PanelButtons | ||
ControlsLocation | ControlsLocation | CMTYPE_ENUMERATED | "None", "MainContainer", "CanvasContainer" | MainContainer | |
TabContainerID | TabContainerID | CMTYPE_STRING | CM_Editor | tab container for the editor |
Static Functions
Returns | Function | Throws |
---|---|---|
SetPopupWindow(NewPopupWindow) | ||
HidePopupWindows() |
Object Functions
Inherited From: CMPanel
Returns | Function | Throws |
---|---|---|
SetCoordinateUnits(CoordinateUnits) | ||
Initialize(TheView) | ||
TheScene | GetScene() | |
TheView | GetView() | |
SetProjector(TheProjector) | ||
SelectTool(ViewToolDef) | ||
AddLayer(NewLayer) | ||
AddBackground(NewLayer) | ||
AddBackgrounds(NewLayer) | ||
SetSelectedBackgroundIndex() | ||
ZoomIn() | ||
ZoomOut() | ||
ZoomToMax() | ||
ZoomToBounds(TheBounds) | ||
ZoomTo(ZoomLevel) | ||
SetRefCenter(RefX, RefY) | ||
StartMap(ResizeFlag) | ||
Resize() |
Static Functions
SetPopupWindow(NewPopupWindow)
Sets the current popup window and hides any existing windows
Parameters:
NewPopupWindow - the DOM element with the visible window
HidePopupWindows()
Sets the current popup window and hides any existing windows