Skip to content

Commit

Permalink
update tabulator and chartjs plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
dbauszus-glx committed Nov 20, 2024
1 parent 360824b commit d8e49d3
Show file tree
Hide file tree
Showing 3 changed files with 777 additions and 152 deletions.
160 changes: 160 additions & 0 deletions geotam/workspace.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
{
"locale": {
"minZoom": 8,
"maxZoom": 17,
"extent": {
"north": 54.1,
"east": -1.5,
"south": 52.9,
"west": -3.1,
"mask": true
},
"layers": {
"OSM": {
"display": true,
"format": "tiles",
"URI": "https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png",
"_style": {
"contextFilter": "grayscale(100%)"
},
"attribution": {
"© OpenStreetMap": "http://www.openstreetmap.org/copyright"
}
},
"openlocal": {
"dbs": "GEOTAM",
"format": "wkt",
"table": "openlocal",
"geom": "geom",
"srid": "4326",
"qID": "id",
"cluster": {
"distance": 25
},
"filter": {
"current": {
"voacategory": {
"ni": ["OFFICE", "OTHER"]
}
}
},
"style": {
"default": {
"icon": {
"type": "dot"
}
},
"highlight": {
"scale": 1.5
},
"theme": {
"type": "categorized",
"field": "voacategory",
"cat": {
"INDUSTRIAL": {
"style": {
"icon": {
"type": "dot",
"fillColor": "#e74c3c"
}
}
},
"LEISURE": {
"style": {
"icon": {
"type": "dot",
"fillColor": "#f7dc6f"
}
}
},
"OFFICE": {
"style": {
"icon": {
"type": "dot",
"fillColor": "#af601a"
}
}
},
"OTHER": {
"style": {
"icon": {
"type": "dot",
"fillColor": "#797d7f"
}
}
},
"RETAIL": {
"style": {
"icon": {
"type": "dot",
"fillColor": "#2874a6"
}
}
}
}
}
},
"infoj": [
{
"type": "pin",
"field": "pin",
"fieldfx": "ARRAY[ST_X(geom),ST_Y(geom)]"
},
{
"title": "voabillingauthoritycode",
"field": "voabillingauthoritycode"
},
{
"title": "voabillingauthorityname",
"field": "voabillingauthorityname"
},
{
"title": "voapropertyaddress",
"field": "voapropertyaddress"
},
{
"title": "voapropertypostcode",
"field": "voapropertypostcode",
"inline": true
},
{
"title": "voascatcode",
"field": "voascatcode",
"nullValue": "NULL",
"inline": true
},
{
"title": "voascatname",
"field": "voascatname",
"nullValue": "NULL",
"inline": true
},
{
"title": "voacategory",
"field": "voacategory",
"nullValue": "NULL",
"inline": true
},
{
"title": "voasubcategory",
"field": "voasubcategory",
"nullValue": "NULL",
"inline": true
},
{
"title": "voafloorarea",
"field": "voafloorarea",
"nullValue": "NULL",
"inline": true
},
{
"title": "voarateablevalue",
"field": "voarateablevalue",
"nullValue": "NULL",
"inline": true
}
]
}
}
}
}
2 changes: 1 addition & 1 deletion plugins/chartjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ function create(_this) {

// Charts most be rendered into a canvas type element.
const canvas = mapp.utils.html.node`<canvas>`

_this.target.replaceChildren(canvas);

// Nullish coalescing operator to assign default values.
Expand Down
Loading

0 comments on commit d8e49d3

Please sign in to comment.