Skip to Content
Map Viewer

WeatherBlox - Map Viewer

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

A MapViewer view is responsible for displaying and managing a weather map consisting of one or more data layers. This view also handles animating weather data across a specific time range.

Map Viewer

Examples

Display a MapViewer component with navigation options to change the zoom level and layer data types centered on Austin, TX:

const view = new aeris.wxblox.views.MapViewer('#wxblox', { map: { loc: 'austin,tx', data: ['radar'] }, controls: { layers: [{ value: 'radar', title: 'Radar' },{ value: 'satellite', title: 'Satellite' },{ value: 'alerts', title: 'Advisories' },{ value: 'temperatures,clip-us-flat', title: 'Temps' }], regions: [{ zoom: 7, title: 'Local' },{ zoom: 5, title: 'Regional' },{ region: 'us', title: 'National' }] } }); view.load();

Configuration

The following configuration options are supported by this view:

OptionDescriptionDefault
mapType: object ()
map.layersType: object ()
map.layers.baseType: array ()['flat']
map.layers.overlaysType: array ()['admin']
map.layers.dataType: array ()undefined
map.centerType: string ()null
map.zoomType: number ()3
map.boundsType: string ()undefined
map.regionType: string ()undefined
map.size.widthType: number ()auto
map.size.heightType: number ()auto
map.size.factorType: number ()0.75
map.offsetType: string ()undefined
map.autoFutureType: boolean ()true
map.combineType: boolean ()false
animationType: object ()
animation.enabledType: boolean ()true
animation.fromType: number ()-2 * 3600
animation.toType: number ()0
animation.durationType: number ()2
animation.endDelayType: number ()1
animation.intervalsType: number ()10
animation.autoplayType: boolean ()false
animation.refreshType: number ()300
overlaysType: object ()
overlays.titleType: string ()undefined
overlays.timestampType: string ()MM/DD/YYYY hh:mm A
overlays.timestamp.formatType: string ()undefined
overlays.timestamp.continuousType: boolean ()true
overlays.brandingType: object ()
overlays.branding.imgType: string ()undefined
overlays.branding.htmlType: string ()undefined
selectorsType: object ()
controlsType: object ()
controls.layersType: array ()null
controls.layers[#].valueType: string ()
controls.layers[#].titleType: string ()
controls.regionsType: array ()null
controls.regions[#].zoomType: number ()
controls.regions[#].locType: string ()
controls.regions[#].titleType: string ()
enabledType: boolean ()true
metricType: boolean ()false
renderNoDataType: boolean ()true
requestType: object ()

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)