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
Item Index
Methods
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
(
private
-
popupAttr
Create a new PopupBase object from the settings provided.
Parameters:
-
popupAttr
PopupBaseSettingsPopup settings
Returns:
popup
Events
baseMapSelector/basemap-changed
Fires whenever the basemap changes
baseMapSelector/toggle [subscribed]
Changes the selected basemap