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 | MainContainer Element ID | CMTYPE_STRING | CM_MapContainer | ||
MainContainerClassName | MainContainer Class Name | CMTYPE_STRING | CM_MapContainer | ||
CanvasContainerID | Canvas Container ID | CMTYPE_STRING | CM_CanvasContainer | ||
CanvasContainerClassName | Canvas Container Class Name | CMTYPE_STRING | CM_CanvasContainer | ||
CanvasContainerWithoutPanelsClassName | Canvas Container Without Panels Class Name | CMTYPE_STRING | CM_CanvasContainerWithoutPanels | ||
CanvasID | Canvas ID | CMTYPE_STRING | CM_Canvas | ||
CanvasClassName | Canvas Class Name | CMTYPE_STRING | CM_Canvas | ||
PanelFooterID | Footer Panel ID | CMTYPE_STRING | |||
PanelToolID | Tool Panel ID | CMTYPE_STRING | |||
PanelButtonsID | Button Panel ID | CMTYPE_STRING | |||
ControlsLocation | ControlsLocation | CMTYPE_ENUMERATED | "None", "MainContainer", "CanvasContainer" | MainContainer | |
EditorContainerID | EditorContainerID | 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) | ||
SimpleMap() | ||
Initialize(TheView) | ||
TheScene | GetScene() | |
TheView | GetView() | |
TheToolPanel | GetToolPanel() | |
footer | GetPanelFooter() | |
SetProjector(TheProjector) | ||
TheProjector | GetProjector() | |
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