@@ -26,10 +26,12 @@ export type RenderConfig = {
2626 * Controls the date picker UI and how the `datetime` query param is formed.
2727 * - `single`: one date input; datetime sent as a single-day range.
2828 * - `range`: two date inputs (start / end).
29+ * - `month`: a single month/year picker; datetime sent as the full calendar month range.
2930 */
3031export type DateConfig =
3132 | { mode : "single" ; default : string }
32- | { mode : "range" ; default : [ string , string ] } ;
33+ | { mode : "range" ; default : [ string , string ] }
34+ | { mode : "month" ; default : string } ;
3335
3436/**
3537 * A numeric range input rendered as two number fields (min, max).
@@ -91,6 +93,8 @@ export type CollectionConfig = {
9193 minzoom : number ;
9294 maxzoom : number ;
9395 backend : "rasterio" | "xarray" ;
96+ /** HTML string shown in the MapLibre attribution control for this layer. */
97+ attribution ?: string ;
9498 /** Controls the date picker UI and the datetime query param format. */
9599 date : DateConfig ;
96100 renders : RenderConfig [ ] ;
@@ -124,7 +128,8 @@ export const DATASETS: DatasetConfig[] = [
124128 minzoom : 5 ,
125129 maxzoom : 13 ,
126130 backend : "rasterio" ,
127- date : { mode : "range" , default : [ "2025-09-01" , "2025-09-30" ] } ,
131+ attribution : '<a href="https://lpdaac.usgs.gov/products/hlsl30v002/" target="_blank">HLS Landsat (NASA LP DAAC)</a>' ,
132+ date : { mode : "month" , default : "2025-09" } ,
128133 queryParams : [
129134 {
130135 type : "range" ,
@@ -166,7 +171,8 @@ export const DATASETS: DatasetConfig[] = [
166171 backend : "rasterio" ,
167172 minzoom : 5 ,
168173 maxzoom : 13 ,
169- date : { mode : "range" , default : [ "2025-09-01" , "2025-09-30" ] } ,
174+ attribution : '<a href="https://lpdaac.usgs.gov/products/hlss30v002/" target="_blank">HLS Sentinel-2 (NASA LP DAAC / ESA)</a>' ,
175+ date : { mode : "month" , default : "2025-09" } ,
170176 queryParams : [
171177 {
172178 type : "range" ,
@@ -212,6 +218,7 @@ export const DATASETS: DatasetConfig[] = [
212218 backend : "xarray" ,
213219 minzoom : 6 ,
214220 maxzoom : 13 ,
221+ attribution : '<a href="https://nisar.jpl.nasa.gov/" target="_blank">NISAR GCOV (NASA JPL / ASF DAAC)</a>' ,
215222 date : { mode : "range" , default : [ "2026-01-01" , "2026-02-01" ] } ,
216223 queryParams : [
217224 {
@@ -263,6 +270,7 @@ export const DATASETS: DatasetConfig[] = [
263270 backend : "xarray" ,
264271 minzoom : 0 ,
265272 maxzoom : 7 ,
273+ attribution : '<a href="https://podaac.jpl.nasa.gov/dataset/MUR-JPL-L4-GLOB-v4.1" target="_blank">MUR SST (NASA JPL PO.DAAC)</a>' ,
266274 date : { mode : "single" , default : "2024-01-15" } ,
267275 renders : [
268276 {
0 commit comments