Skip to main content

Layer Endpoints

Create and manage both map and weather layers using the unified API with type discrimination.

GET /layers

Retrieves all layers (both map and weather) for the authenticated user.

GET /layers/

Retrieves a specific layer by ID.

POST /layers

Creates a new layer using the discriminator pattern. The type field determines required parameters.

PUT /layers/

Updates an existing layer. All layer fields (name, type, and type-specific fields) are required.

DELETE /layers/

Permanently deletes a layer by ID.

Layer Types

Weather Layer Types

  • wl:RasterLayer - Raster weather data visualization
  • wl:ParticleLayer - Particle-based weather visualization
  • wl:IsolineLayer - Contour/isoline weather visualization

Map Layer Types

  • ScatterPlotLayer - Point-based geospatial data
  • GeoJsonLayer - GeoJSON polygon/line data

Required Parameters

Weather Layers

  • Common: name, type, weather_model_id, variable, altitude
  • Forecast Models: run_hour, run_day (YYYY-MM-DD format)
  • Historical Models (ERA5): No run parameters needed

Map Layers

  • Common: name, type, dataset_id
  • Optional: deckgl_props, ui_config