Weather Map Configuration

When creating an interactive weather map, you have the option to pass additional configuration options to override the default setup. These options are provided as a simple object and can contain values for any one or all of the supported options as outlined below.

Configuration Options

Option Type Description Default
strategy string The third-party mapping library code to use. Currently only leaflet is supported. leaflet
center ICoordinate The geographical coordinate to center the map on initially. Must be a valid ICoordinate object, e.g. { lat: 38.5, lon: -121.5 }
zoom number The initial zoom level of the map.
timeline object Provides the configuration options for the map’s internal animation timeline.
timeline.from number Start time offset of the map’s timeline relative to now, in seconds. Value must be less than timeline.to. -2 * 3600
timeline.to number End time offset of the map’s timeline relative to now, in seconds. Value must be greater than or equal to timeline.from. 0
timeline.intervals number The number of images used to produce the animation between timeline.from & timeline.to. 10
styles object Custom style definitions per layer code.
layers string | string[] The initial layers to render on the map, either as an array of layer code strings or a comma-separated list of layer codes.