CanvasMap
Getting Started Tutorials 3D Reference

Reference Material

This page contains reference information for calling CanvasMap from JavaScript and on how CanvasMap was designed.

Quick Reference

Common Classes and Settings

Below is a list of the commonly used classes in CanvasMap for 2D maps and another list for 3D maps. Clicking on the class will take you to the reference information for the class.

2D Quick Links

3D Quick Links

The following will be updated after the restructing for the new settings design:

2D Commonly Used Classes

CMMainContainer - The main container for a CanvasMap

Commonly Used Functions

Commonly Used Settings

GroupSettingsValuesOptions
MainContainerScene3DBOOLEAN  
MainContainerAllowMouseEventsBOOLEAN  
MainContainerResizeBOOLEAN  
MainContainerImageFolderSTRING  
MainContainerMapNumberINTEGER  
MainContainerMainContainerElementIDSTRING  
MainContainerMainContainerClassNameSTRING  
MainContainerCanvasContainerIDSTRING  
MainContainerCanvasContainerClassNameSTRING  
MainContainerCanvasContainerWithoutPanelsClassNameSTRING  
MainContainerCanvasIDSTRING  
MainContainerCanvasClassNameSTRING  
MainContainerPanelFooterIDSTRING  
MainContainerPanelToolIDSTRING  
MainContainerPanelButtonsIDSTRING  
MainContainerControlsLocationENUMERATED "None", "MainContainer", "CanvasContainer"
MainContainerIncludeLayerListBOOLEAN  
MainContainerIncludeBackgroundPanelBOOLEAN  
MainContainerIncludeSearchPanelBOOLEAN  
MainContainerIncludeDevEditorBOOLEAN  

CMScene - Contains the Geos for a scene

Commonly Used Functions

Commonly Used Settings

GroupSettingsValuesOptions
StylefillStyleCSS_STYLE  

CMGeo - Contains the layers for a single geo (i.e. the Earth)

Commonly Used Functions

Commonly Used Settings

GroupSettingsValuesOptions

CM2View - manages the interactions between the CANVAS element and the scene.

Commonly Used Functions


Commonly Used Settings

GroupSettingsValuesOptions
ViewCollisionCheckingBOOLEAN  
ViewClusteringBOOLEAN  
ViewMobileSupportedBOOLEAN  
View2DMinZoomFLOAT  
View2DMaxZoomFLOAT  
View2DMaxBoundsBOUNDS  

CMLayerDataset - the main layer for server-side data such as GeoJSON, Pyramids, etc

Commonly Used Functions

Common Functions to override

Commonly Used Settings

GroupSettingsValuesOptions
NameNameSTRING  
NameTypeSTRING  
NameDefaultSTRING  
StatusNameINDEXES  
StatusTypeINDEXES  
StatusOptionsINDEXES  
StatusDefaultINDEXES  
PositionTranslationsVECTOR  
PositionRotationsVECTOR  
PositionScalesVECTOR  
LayerInfoTextSTRING  
LayerMetadataSTRING  
LayerMinZoomFLOAT  
LayerMaxZoomFLOAT  
LayerZoomToBoundsOnLoadBOOLEAN  
LayerIconCanvasWidthFLOAT  
LayerIconCanvasHeightFLOAT  
MarkTypeENUMERATED CMMARK_CIRCLE, CMMARK_TRIANGLE, CMMARK_SQUARE, CMMARK_STAR
MarkSizeFLOAT  
MarkSizeInMapUnitsBOOLEAN  
IconImageURLURL  
IconImageTheImageIMAGE  
IconImageOffsetXFLOAT  
IconImageOffsetYFLOAT  
LabelBoxLocationINDEXES "Top-Left", "Top", "Top-Right", "Right", "Bottom-Right", "Bottom", "Bottom-Left", "Left"
LabelBoxOffsetXFLOAT  
LabelBoxOffsetYFLOAT  
LabelBoxPaddingFLOAT  
DatasetURLSTRING  
DatasetFormatINDEXES CMDataset.GEOJSON, CMDataset.PYRAMID, CMDataset.PYRAMID_OPEN_FORMAT, CMDataset.RASTER, CMDataset.SQL
DatasetNorthPoleColorCOLOR  
DatasetSouthPoleColorCOLOR  

CMLayerRaster - the main layer for server-side data such as GeoJSON, Pyramids, etc

Commonly Used Functions

Commonly Used Settings

GroupSettingsValuesOptions
DatasetURLSTRING  
RasterBoundsBOUNDS  

CMLayerGraticule - places meridians and parallels over the map.

Commonly Used Functions

Commonly Used Settings


CMDataset - base class for datasets

Commonly Used Functions

Commonly Used Settings


CMScaleBar - creates acurate scale bars

Commonly Used Functions

Commonly Used Settings


CMNorthArrow - creates north arrows that always point north

Commonly Used Functions

Commonly Used Settings

GroupSettingsValuesOptions
NorthArrowScaleFLOAT  
NorthArrowClassNameSTRING  
NorthArrowURLSTRING  

CMUtilities - various utilities to support CanvasMap

Commonly Used Functions

 

3D Commonly Used Classes


CM3Light - Lights for 3D scenes

Note: Lights will be broken up into mulitple classes in a future release

Commonly Used Functions

Commonly Used Settings


CM3View - Views for 3D scenes

Commonly Used Functions

Commonly Used Settings