Changelog
1.0.7
Sep 08, 2025
Compatibility: Requires @xweather/mapsgl >= 1.8.0 (package renamed from @aerisweather/mapsgl).
✨ Improvements
- Auto-propagate composite layer filters to child layers.
🐞 Bug Fixes
- Fix composite layers not being added to the map when a custom layer id is provided.
1.0.6
Aug 26, 2025
✨ Features
- Add support for filtering layer data via control settings.
🛠 Improvements
- Add
ColorScalePreviewcomponent to easily preview color scale gradients. - Update
ThumbnailButtonto supportasChildviaSlot; defaultThumbnailButtonPreviewtoColorScalePreview. - Update default styles for
RadioGroup/ToggleGroup. - Support gradients for masked color scales.
🐞 Bug Fixes
- Prevent color-scale stop/mask updates from mutating unrelated layer properties.
- Match MapsGL color scale gradients in
ThumbnailButton. - Fix an issue preventing radar weather layer from being added to the map.
- Fix an issue where transparent color stops were not being properly applied to layers with masked color scales.
- Handle string values for sample interpolation controls.
- Use current location coordinates (not current place) in
SearchGeolocateButton.
1.0.5
May 15, 2025
✨ Features
- Add
useLocationhook for location management withonChangecallback support.
🛠 Improvements
- Add
onGeoLocationErrorcallback toSearchGeolocateButtonfor better error handling.
🐞 Bug Fixes
- Add missing
hgunit alias forinhg. - Fix default distance unit in settings.
- Fix timeline settings control speed state reset issue.
1.0.4
Mar 17, 2025
✨ Features
- Add
precisionproperty to controlunitsconfiguration, allowing control over decimal precision for each valid unit type. - Add
useUnitDisplayhook to better encapsulate converting and formatting numeric values based on unit configuration and unit settings.
🛠 Improvements
- Reworked internal unit handling with improved types, constants, mappings, and utilities.
- Updated unit symbols to follow SI notation (
mm/h,°C,μg/m³). - Improve type safety and consistency across settings and unit-related components.
- Improve default result formatting behavior in
SearchProviderfor easier customization. - Add
valueFormattersupport toUnitButtonfor custom value formatting. - Add automatic handling of scale conversion (
°C↔°F) for temperature-based color interval settings.
🐞 Bug Fixes
- Fix incorrect initial handling of unit conversions in layers and controls.
- Add missing border styling to
ThumbnailButtonwhen selected white background is applied. - Fix layout issues in
ScrollableArea. - Fix inconsistent unit handling during add/update layer events.
1.0.3
Feb 14, 2025
✨ Features
- Rename
SlidertoDataSliderand add support for dynamic units with theunitsprop, and custom value formatting with thevalueFormatterprop.
🛠 Improvements
- Rework library distribution to reduce bundle size (MapsGL is now a peer dependency; ensure it is installed separately.)
- Add
useMapControllerhook for better flexibility in cases where theMapsGLMapControllerProvideris not needed. - Update
DataSliderandSelectcomponents to use Radix UI primitives for improved accessibility. - Update default layer style settings to match MapsGL layer configuration.
- Enhance unit handling and value formatting across control components.
- Improve
classNamehandling across control components to ensure consistent application of styles when using the compound component pattern.
🐞 Bug Fixes
- Fix incorrect default opacity values in
LayerDataSchema. - Use
dBZas the default radar layer unit instead of the default for rate measurement type (mm/s). - Fix incorrect handling of default color scale settings for layers.
- Add missing
groupIdto child layers. - Fix cursor styling in
DataSliderto ensure clickable area covers the full slider.
1.0.2
Jan 31, 2025
✨ Features
- Add
Slotcomponent to supportasChildcomposition for improved flexibility. - Add
Fieldcomponent to encapsulate layout and accessible label association. - Add new control components
RadioGroupandToggleGroupfor managing radio and toggle style selection. - Add
Controlcomponent for dynamically rendering controls based on layer settings.
🛠 Improvements
- Add
toggleDataInspectortoMapsGLMapControllerProviderto enable toggling the data inspector. - Add
MapsGLLayerSettingsViewto replaceControlView, usingControlandFieldcomponents. - Improve
SelectandSliderby removing unnecessary state context and usingforwardRef. - Standardize event handling across
Select,Slider, and other controls by switching fromonChangetoonValueChange. - Improve grid layout handling for better responsiveness and composability.
- Update
Tooltipto useSlot, improving composability. - Enhance
MapsGLSearchControlstructure, improving animations, styling, and UX.
🐞 Bug Fixes
- Fix postal code queries not returning results correctly in
SearchProvider. - Fix styling inconsistencies in
ThumbnailButton. - Improve accessibility in
SliderandSelectby ensuring elements have anidandaria-labelledby. - Fix an issue in
MapsGLSearchControlwhere search results do not always display. - Fix runtime errors in
DataViewerwhen cards return no data. - Prevent unintended closure of search results when clicking the border of
SearchDivider. - Fix a stale state issue in
MapsGLMapControllerProvideraffecting callbacks (e.g.onLoad). - Improve visibility handling on mobile in
SearchResultsby addressing issues withisFocused. - Fix a styling issue in
TimelineSettingsControlwhere a missingxw-style prefix affects UI consistency. - Fix event handling in
ListButtonBaseto correctly pass the parameter toonClick. - Fix event handling in
SearchClearto prevent early blur firing when clearing input. - Prevent unnecessary re-renders in
LoadingProvider. - Fix double-click detection logic in
MapsGLMapControllerProviderto prevent unintended interactions. - Fix handling of aborted fetch requests in
WeatherApiDataFetcher. - Fix focus issues in
ScrollableArea.
1.0.1
Nov 07, 2024
- Initial release