Class: Card

Portal Home

CMaps Analytics Online Portal

Javascript API Docs

How to Use CMaps API

Working with Data

Working with Layers

Including Custom Components

View API Docs

Request Access

Developer Resources

Developers Introduction to CMaps Designer

Strategies for Integrating CMaps Analytics

Embed and Connect CMaps Templates in HTML5 App

Creating custom CMaps Analytics Plugin & Property Sheet

Security Guide

Card

Main class that represents a widget in the advanced info window

Constructor

new Card()

Properties:
Name Type Description
uid String randomly generated id
cMap Object centigon.locationIntelligence.CMapAnalytics
layer Object the currently active centigon.mapping.Layer in the advanced info window
options Object centigon.ui.CardOptions
controlIdToRandomId Object key/val map of meaningful control id's in your html, to their randomly-generated div ids { mySelectControlId: this._domUtil.getRandomDivId(), myCheckboxControlId: this._domUtil.getRandomDivId() };
htmlLoaded Boolean indicates if HTML loaded yet
uid String randomly generated id
Version:
  • 4.1.00

Methods

add()

Override, called when added

addEventListeners()

Override, use it to add any event listeners to your HTML

aiwLayerChanged()

Override, called when a layer is made active in the advanced info window

domObj(id) → {Object}

Returns a JQuery dom object
Parameters:
Name Type Description
id String
Returns:
JQuery dom object
Type
Object

domObjByRandField(id) → {Object}

Returns a JQuery dom object based on the meaningful name of your randomly-generated control id to be used like this, based on the example "controlIdToRandomId" property: this.domObjByRandField("mySelectControlId")
Parameters:
Name Type Description
id String
Returns:
JQuery dom object
Type
Object

getDomObjByClassNameUnderMyDiv(className) → {Object|Array}

Returns dom objects under this div, by class name
Parameters:
Name Type Description
className String
Returns:
JQuery dom object(s)
Type
Object | Array

getMyDiv(id) → {Object}

Returns this card's div
Parameters:
Name Type Description
id String
Returns:
JQuery dom object
Type
Object

hide()

Override, called when hidden

infoWindowClosed()

Override, called when an info window is closed for the active layer

layerSelected()

Override, called when the active layer is selected

onHtmlSet(callback)

Override, use it to get your HTML either asynchronous or synchronously
Parameters:
Name Type Description
callback Objects

onHtmlSet()

Called after HTML has been set

remove()

Override, called when removed

selectorTypeChanged()

Override, called when map selector panel type changes

show()

Override, called when shown

updateView()

Override, called when an update is triggered by the advanced info window

viewportChanged()

Override, called when map viewport changes

visChanged()

Override, called when shown/hidden