From 727ee1f16ca092a08b281d7d320211f7f2c11eb1 Mon Sep 17 00:00:00 2001 From: jgaffuri Date: Mon, 8 Jan 2024 11:36:36 +0100 Subject: [PATCH] doc --- docs/reference.md | 2 +- examples/basics/blending_alpha.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference.md b/docs/reference.md index d45beae0c..96733151f 100644 --- a/docs/reference.md +++ b/docs/reference.md @@ -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 diff --git a/examples/basics/blending_alpha.html b/examples/basics/blending_alpha.html index bca019222..656ff2ca2 100644 --- a/examples/basics/blending_alpha.html +++ b/examples/basics/blending_alpha.html @@ -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) => {