Skip to Content
Maps Layout

WeatherBlox - Maps Layout

Object
aeris.wxblox.layouts.local.Maps
Data Usage
Raster Maps usage based on size of map and total layers.

The Maps layout displays and manages a MapController view along with a MapListing menu for changing data layers and a map region menu for updating the active bounds for the map.

Maps Layout

Examples

Display a weather map view using the default configuration with custom options for layers (MapListing) component:

const view = new aeris.wxblox.layouts.Maps('#wxblox', { layers: { categories: [], codes: ['radar', 'alerts', 'temperatures'] } }); view.load();

Display a weather map view using a custom region selector menu and different categories for the maps listing:

const view = new aeris.wxblox.layouts.Maps('#wxblox', { layers: { categories: ['radar/sat', 'severe', 'observations'] }, regions: { items: { us: { label: 'United States' }, region: { us: aeris.wxblox.regions.asArray(['usne','usse','usnc','ussc','usnw','ussw'], { label: 'name', value: 'code' }) } } } }); view.load();

Configuration

The following configuration options are supported by this view:

OptionDescriptionDefault
controllerType: object ()
controller.viewerType: object ()
controller.viewer.mapType: object ()
controller.viewer.map.layersType: object ()
controller.viewer.map.layers.baseType: array ()['flat']
controller.viewer.map.layers.dataType: array ()undefined
controller.viewer.map.layers.overlaysType: array ()['admin']
controller.viewer.map.sizeType: object (){}
controller.viewer.map.size.widthType: number ()"auto"
controller.viewer.map.size.heightType: number ()"auto"
controller.viewer.map.size.factorType: number ()0.75
controller.viewer.animationType: object ()
controller.viewer.animation.enabledType: boolean ()true
controller.viewer.animation.autoplayType: boolean ()false
controller.viewer.animation.alwaysShowPastType: boolean ()false
controller.viewer.animation.alwaysShowFutureType: boolean ()false
controller.viewer.animation.durationType: number ()2
controller.viewer.animation.endDelayType: number ()1
controller.viewer.animation.intervalsType: number ()10
controller.viewer.overlaysType: object ()
controller.viewer.overlays.timestampType: string ()MM/DD/YYYY hh:mm A
controller.viewer.overlays.brandingType: object ()
controller.viewer.overlays.branding.imgType: string ()undefined
controller.viewer.overlays.branding.htmlType: string ()undefined
controller.rangeType: object ()
controller.range.intervalsType: string ()-24, -12, -6, -2, 0, 2, 6, 12, 24
controller.range.initType: object ()
controller.range.init.fromType: number ()-2
controller.range.init.toType: number ()0
regionsType: object (){}
layersType: object ()
layers.categoriesType: string ()undefined
layers.codesType: string ()undefined
layers.typeType: string ()"list"
layers.linksType: boolean ()false
selectorsType: object ()
selectors.controllerType: string ().awxs-view-map
selectors.regionsType: string ().awxs-nav-regions
selectors.layersType: string ().awxs-nav-layers
initType: object ()
init.regionsType: object (){}
init.regions.keyType: string ()undefined
init.layersType: object (){}
init.layers.valueType: string ()undefined
enabledType: boolean ()true
metricType: boolean ()false

Methods

The following methods are supported by instances of this view:

Events

The following events are triggered by instances of this view:

© 2026 Xweather (opens in a new tab)Terms of Service (opens in a new tab)Privacy Policy (opens in a new tab)