API Docs for: 0.0.8-0
Show:

BaseMapSelector Class

Populates the BasemapGallery widget located in the maps toolbar with items found in the application configuration. This module also handles all the event needed to change the map basemap and update the UI

Methods

init

() Object private

Initiates additional UI components of the widget, setting listeners and registering the popup functionality

Returns:

Object:

itself

initListeners

() private

Initializes class listeners.

initTopics

() private

Initializes functions that publish events.

newPopup

(
  • popupAttr
)
private

Create a new PopupBase object from the settings provided.

Parameters:

Returns:

popup

Events

baseMapSelector/basemap-changed

Provided by the UI module.

Defined in javascript\src\RAMP\Modules\eventManager.js:497

Fires whenever the basemap changes

Event Payload:

  • evt Object

    the event object

    • id String

      the id of the selected basemap

    • title String

      the title of the selected basemap

    • cssStyle String

baseMapSelector/toggle [subscribed]

Provided by the UI module.

Defined in javascript\src\RAMP\Modules\eventManager.js:520

Changes the selected basemap

Event Payload:

  • evt Object

    the event object

    • id String

      the id of the basemap that is to be selected

baseMapSelector/UIComplete

Provided by the UI module.

Defined in javascript\src\RAMP\Modules\eventManager.js:509

Fires after the basemap selector finished updating its UI (on page load)

Event Payload:

  • evt Object

    the event object

    • title String

      the title of the basemap that is selected