Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jgaffuri committed Jan 8, 2024
1 parent c094794 commit 727ee1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ The kernel smoothing computation relies on the [fast-kde](https://www.npmjs.com/

## Custom styles

The style can be freely defined through the **drawFun**, which specifies how to draw the list of cells within the view on the map canvas. See [this example](https://eurostat.github.io/gridviz/examples/basics/custom_style.html) ([code](https://github.com/eurostat/gridviz/blob/master/examples/basics/custom_style.html)) to define a simple custom style.
The style can be freely defined through the **drawFun**, which specifies how to draw the list of cells within the view on the map canvas. See [this example](https://eurostat.github.io/gridviz/examples/basics/custom_style.html) ([code](https://github.com/eurostat/gridviz/blob/master/examples/basics/custom_style.html)) to define a simple style to draw each cell as an arrow symbol.

## Background layer

Expand Down
2 changes: 1 addition & 1 deletion examples/basics/blending_alpha.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

//define map with initial view
const map = new gridviz.Map(document.getElementById('map'), { x: 4300000, y: 2900000, z: 300 })
.addZoomButtons()

//define dataset
const dataset = new gridviz.CSVGrid(map, "https://raw.githubusercontent.com/eurostat/gridviz/master/assets/csv/Europe/pop_2018_10km.csv", 10000)
.addZoomButtons()

//define color for each cell c
const colorFunction = (cell) => {
Expand Down

0 comments on commit 727ee1f

Please sign in to comment.