2.1.1 • Published 6 months ago

icos-cp-netcdfmap v2.1.1

Weekly downloads
25
License
GPL-3.0
Repository
github
Last release
6 months ago

ICOS Carbon Portal NetCDF Map package

Description

Requires Leaflet loaded in global scope. React NetCDF Leaflet map component. It displays raster data in canvas tiles.

Installation

npm install icos-cp-netcdfmap

Properties to send

mapOptions - OPTIONAL (JS Object) - Override options for Leaflet in componentDidMount

geoJson - OPTIONAL (Leaflet GeoJSON object or an array of GeoJSON objects) - Display GeoJSON layer in map, usually a country layer

raster - REQUIRED (BinRaster) - Raster data to show in map

overlay - OPTIONAL (JS Object with [Leaflet Layer]) - Feature overlay to be displayed in map. Feature symbols must be able to be added to a Leaflet featureGroup
	Example: {label: "Station", features: [Leaflet Layer]}

latLngBounds - OPTIONAL (L.latLngBounds) - If included, map will pan to center point of bounds

reset - OPTIONAL (Boolean) - If true, map will clear canvas, mask and overlay

colorMaker - REQUIRED (colorMaker) - Defines what colors the raster gets

renderCompleted - OPTIONAL (function) - What to do when canvas rendering is completed

mask - OPTIONAL (polygonMask) - Display mask showing extent

maskOptions - OPTIONAL (JS Object) - Override default options of mask

Tests

None

2.1.1

6 months ago

2.1.0

6 months ago

2.0.2

2 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.0

5 years ago

0.2.2

5 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago