Skip to content

Commit

Permalink
use new eurostat module
Browse files Browse the repository at this point in the history
  • Loading branch information
jgaffuri committed Sep 29, 2023
1 parent ddd0c39 commit cc3a479
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion docs/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,7 @@ new gviz.App(containerDiv)

Input data are structured as a _GeoJSON FeatureCollection_ of linear features.

The **gviz.getEurostatBoundariesLayer()** function returns ready-to-use boundary layer settings based on [Nuts2json](https://github.com/eurostat/Nuts2json) datasets.
The **gviz_es.getEurostatBoundariesLayer()** function from [gridviz-eurostat](https://github.com/eurostat/gridviz-eurostat) module returns ready-to-use boundary layer settings based on [Nuts2json](https://github.com/eurostat/Nuts2json) datasets.

The **setBoundaryLayer** method has the following parameters:

Expand Down
2 changes: 1 addition & 1 deletion examples/EUR_bu.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
.setGeoCenter({ x: 4500000, y: 2900000 })
.setZoomFactor(1100)
.setLabelLayer(gviz_es.getEuronymeLabelLayer('FR', '20'))
.setBoundaryLayer(gviz.getEurostatBoundariesLayer())
.setBoundaryLayer(gviz_es.getEurostatBoundariesLayer())
.setViewFromURL()
.addMultiScaleTiledGridLayer(
[1000, 2000, 5000, 10000, 20000, 50000, 100000],
Expand Down
2 changes: 1 addition & 1 deletion examples/EUR_census_demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@
})
)
.setBoundaryLayer(
gviz.getEurostatBoundariesLayer({
gviz_es.getEurostatBoundariesLayer({
baseURL: nuts2jsonURL,
showOth: false,
color: (f, zf) => {
Expand Down
2 changes: 1 addition & 1 deletion examples/NO.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
.setLabelLayer(gviz_es.getEuronymeLabelLayer('NO', '20', {
proj: proj
}))
//.setBoundaryLayer(gviz.getEurostatBoundariesLayer())
//.setBoundaryLayer(gviz_es.getEurostatBoundariesLayer())
//TODO add boundaries with projection

//fill years list
Expand Down
2 changes: 1 addition & 1 deletion examples/stretching.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@

.setBackgroundColor('black')
.setLabelLayer(gviz_es.getEuronymeLabelLayer('EUR', '20', { dark: true }))
.setBoundaryLayer(gviz.getEurostatBoundariesLayer())
.setBoundaryLayer(gviz_es.getEurostatBoundariesLayer())

.addMultiScaleTiledGridLayer(
[1000, 2000, 5000, 10000, 20000, 50000, 100000],
Expand Down
2 changes: 1 addition & 1 deletion examples/styles/joyplot_shading.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
})
)
.setBoundaryLayer(
gviz.getEurostatBoundariesLayer({
gviz_es.getEurostatBoundariesLayer({
scale: '10M',
col: '#00000044',
lineDash: () => [],
Expand Down
2 changes: 1 addition & 1 deletion examples/styles/lego_EUR.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
})
)
.setBoundaryLayer(
gviz.getEurostatBoundariesLayer({
gviz_es.getEurostatBoundariesLayer({
scale: '10M',
col: '#00000055',
lineDash: () => [],
Expand Down
2 changes: 1 addition & 1 deletion examples/styles/mosaic_full_FR.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
.setGeoCenter({ x: 3763437, y: 2891045 })
.setZoomFactor(22)
.setZoomFactorExtent([7, 2000])
.setBoundaryLayer(gviz.getEurostatBoundariesLayer())
.setBoundaryLayer(gviz_es.getEurostatBoundariesLayer())
.setViewFromURL()
.setLabelLayer(
gviz_es.getEuronymeLabelLayer('FR', 20, {
Expand Down
2 changes: 1 addition & 1 deletion examples/test/page_include test.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ <h1>Test of HTML inclusion</h1>
.setZoomFactor(600)
.setZoomFactorExtent([40, 7500])
.setLabelLayer(gviz_es.getEuronymeLabelLayer())
.setBoundaryLayer(gviz.getEurostatBoundariesLayer())
.setBoundaryLayer(gviz_es.getEurostatBoundariesLayer())
.addMultiScaleTiledGridLayer(
[1000, 2000, 5000, 10000, 20000, 50000, 100000],
(r) =>
Expand Down
2 changes: 1 addition & 1 deletion examples/test/ur/accessibility_educ_health.html
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@
})
)
.setBoundaryLayer(
gviz.getEurostatBoundariesLayer({
gviz_es.getEurostatBoundariesLayer({
baseURL: nuts2jsonURL,
showOth: false,
color: (f, zf) => {
Expand Down
2 changes: 1 addition & 1 deletion examples/test/ur/degurba.html
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
})
)
.setBoundaryLayer(
gviz.getEurostatBoundariesLayer({
gviz_es.getEurostatBoundariesLayer({
baseURL: nuts2jsonURL,
showOth: false,
color: (f, zf) => {
Expand Down
2 changes: 1 addition & 1 deletion examples/test/ur/forest.html
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
})
)
.setBoundaryLayer(
gviz.getEurostatBoundariesLayer({
gviz_es.getEurostatBoundariesLayer({
baseURL: nuts2jsonURL,
showOth: false,
color: (f, zf) => {
Expand Down
2 changes: 1 addition & 1 deletion examples/test/ur/land_cover.html
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@
})
)
.setBoundaryLayer(
gviz.getEurostatBoundariesLayer({
gviz_es.getEurostatBoundariesLayer({
baseURL: nuts2jsonURL,
showOth: false,
color: (f, zf) => {
Expand Down
2 changes: 1 addition & 1 deletion examples/test/ur/population.html
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
})
)
.setBoundaryLayer(
gviz.getEurostatBoundariesLayer({
gviz_es.getEurostatBoundariesLayer({
baseURL: nuts2jsonURL,
showOth: false,
color: (f, zf) => {
Expand Down
2 changes: 1 addition & 1 deletion examples/test/ur/road_transport_perf.html
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
})
)
.setBoundaryLayer(
gviz.getEurostatBoundariesLayer({
gviz_es.getEurostatBoundariesLayer({
baseURL: nuts2jsonURL,
showOth: false,
color: (f, zf) => {
Expand Down

0 comments on commit cc3a479

Please sign in to comment.