Skip to content

Commit

Permalink
work: improved visualisation for fine granularity
Browse files Browse the repository at this point in the history
  • Loading branch information
MAudelGisaia committed Jan 29, 2024
1 parent 0c2f2cc commit 015d541
Show file tree
Hide file tree
Showing 3 changed files with 121 additions and 26 deletions.
26 changes: 13 additions & 13 deletions src/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"aggregated_geometry": "cell"
},
{
"id": "arlas_id:heatmap-circle-finest:1706285438495",
"id": "arlas_id:heatmap-circle-finest:1706520885741",
"name": "heatmap-circle-finest",
"source": "cluster-track.trail_geohashes_6-Finest-geohash-cell_center-demo_ais_flow",
"minzoom": 0,
Expand All @@ -66,11 +66,11 @@
"agg_geo_field": "track.trail_geohashes_6",
"aggType": "geohash",
"granularity": "Finest",
"minfeatures": 100,
"minfeatures": 0,
"aggregated_geometry": "cell_center"
},
{
"id": "arlas_id:heatmap-circle-fine:1706285714366",
"id": "arlas_id:heatmap-circle-fine:1706519948388",
"name": "heatmap-circle-fine",
"source": "cluster-track.trail_geohashes_6-Fine-geohash-cell_center-demo_ais_flow",
"minzoom": 0,
Expand All @@ -95,11 +95,11 @@
"agg_geo_field": "track.trail_geohashes_6",
"aggType": "geohash",
"granularity": "Fine",
"minfeatures": 400,
"minfeatures": 0,
"aggregated_geometry": "cell_center"
},
{
"id": "arlas_id:heatmap-circle-med:1706285724828",
"id": "arlas_id:heatmap-circle-med:1706520870252",
"name": "heatmap-circle-med",
"source": "cluster-track.trail_geohashes_6-Medium-geohash-cell_center-demo_ais_flow",
"minzoom": 0,
Expand All @@ -124,11 +124,11 @@
"agg_geo_field": "track.trail_geohashes_6",
"aggType": "geohash",
"granularity": "Medium",
"minfeatures": 200,
"minfeatures": 0,
"aggregated_geometry": "cell_center"
},
{
"id": "arlas_id:heatmap-circle-coarse:1706285731760",
"id": "arlas_id:heatmap-circle-coarse:1706520877157",
"name": "heatmap-circle-coarse",
"source": "cluster-track.trail_geohashes_6-Coarse-geohash-cell_center-demo_ais_flow",
"minzoom": 0,
Expand All @@ -153,7 +153,7 @@
"agg_geo_field": "track.trail_geohashes_6",
"aggType": "geohash",
"granularity": "Coarse",
"minfeatures": 300,
"minfeatures": 0,
"aggregated_geometry": "cell_center"
},
{
Expand Down Expand Up @@ -1436,28 +1436,28 @@
{
"name": "heatmap-circle-finest",
"layers": [
"arlas_id:heatmap-circle-finest:1706285438495"
"arlas_id:heatmap-circle-finest:1706520885741"
],
"enabled": false
},
{
"name": "heatmap-circle-fine",
"layers": [
"arlas_id:heatmap-circle-fine:1706285714366"
"arlas_id:heatmap-circle-fine:1706519948388"
],
"enabled": false
},
{
"name": "heatmap-circle-med",
"layers": [
"arlas_id:heatmap-circle-med:1706285724828"
"arlas_id:heatmap-circle-med:1706520870252"
],
"enabled": false
},
{
"name": "heatmap-circle-big",
"layers": [
"arlas_id:heatmap-circle-coarse:1706285731760"
"arlas_id:heatmap-circle-coarse:1706520877157"
],
"enabled": false
}
Expand Down Expand Up @@ -2398,7 +2398,7 @@
}
},
"contributorId": "demo_ais_flow-track.id-20-MMSI-Ship type-Ship Name-Fragment duration (s)-Course duration (h)-Timestamp start-Technical Information-Course Information-Course Origin-Course Destination-",
"uuid": "533b9a3f-5bfb-43fa-9a7b-89aaa4896ded",
"uuid": "d8389b79-9ce6-48e6-a1a9-0151a9046b60",
"usage": "analytics"
}
]
Expand Down
24 changes: 12 additions & 12 deletions src/config.map.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
]
},
{
"id": "arlas_id:heatmap-circle-finest:1706285438495",
"id": "arlas_id:heatmap-circle-finest:1706520885741",
"type": "circle",
"source": "cluster-track.trail_geohashes_6-Finest-geohash-cell_center-demo_ais_flow",
"minzoom": 0,
Expand Down Expand Up @@ -182,7 +182,7 @@
]
},
{
"id": "arlas_id:heatmap-circle-fine:1706285714366",
"id": "arlas_id:heatmap-circle-fine:1706519948388",
"type": "circle",
"source": "cluster-track.trail_geohashes_6-Fine-geohash-cell_center-demo_ais_flow",
"minzoom": 0,
Expand Down Expand Up @@ -253,16 +253,16 @@
["zoom"],
0, 10,
1.999, 30,
4.999, 90,
4.999999, 90,
5, 30,
7.999, 150,
7.999999, 120,
8, 40,
10.499, 180,
10.5, 50,
13.999, 200,
14, 50,
16.999, 350,
17, 50
10.499999, 180,
10.5, 30,
13.999999, 210,
14, 300,
16.999999, 1000,
17, 2000
],
"circle-blur": 1,
"circle-stroke-width": 0,
Expand All @@ -281,7 +281,7 @@
]
},
{
"id": "arlas_id:heatmap-circle-med:1706285724828",
"id": "arlas_id:heatmap-circle-med:1706520870252",
"type": "circle",
"source": "cluster-track.trail_geohashes_6-Medium-geohash-cell_center-demo_ais_flow",
"minzoom": 0,
Expand Down Expand Up @@ -380,7 +380,7 @@
]
},
{
"id": "arlas_id:heatmap-circle-coarse:1706285731760",
"id": "arlas_id:heatmap-circle-coarse:1706520877157",
"type": "circle",
"source": "cluster-track.trail_geohashes_6-Coarse-geohash-cell_center-demo_ais_flow",
"minzoom": 0,
Expand Down
97 changes: 96 additions & 1 deletion src/config_improved.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const heatmap = {
}


const cirlce_fines = {
const cirlce_finest = {
"id": "arlas_id:Gathered birds positions circle:1706023503869",
"type": "circle",
"source": "cluster-track.location-Finest-geohash-cell_center-demo_birdtracking-movebank",
Expand Down Expand Up @@ -169,3 +169,98 @@ const cirlce_fines = {
]
]
}


const cirlce_fines = {
"id": "arlas_id:heatmap-circle-fine:1706519948388",
"type": "circle",
"source": "cluster-track.trail_geohashes_6-Fine-geohash-cell_center-demo_ais_flow",
"minzoom": 0,
"maxzoom": 24,
"layout": {
"visibility": "visible",
"circle-sort-key": [
"interpolate",
[
"linear"
],
[
"get",
"count_:normalized"
],
0, 0,
0.2, 2,
0.4, 4,
0.6, 8
]
},
"paint": {
"circle-opacity": [
"interpolate",
[
"linear"
],
[
"get",
"count_:normalized"
],
0, 0.2,
1, 0.5
],
"circle-color": [
"interpolate",
[
"linear"
],
[
"get",
"count_:normalized"
],
0,
"#cee897",
0.125,
"#9dc95b",
0.25,
"#4bc71e",
0.3,
"#1bc473",
0.35,
"#16ccc9",
0.4,
"#3619cf",
0.55,
"#9317d1",
0.8,
"#d11799",
1,
"#cf1919"
],
"circle-radius": [
"interpolate",
[
"linear"
],
["zoom"],
0, 10,
1.999, 30,
4.999999, 90,
5, 30,
7.999999, 120,
8, 40,
10.499999, 180,
10.5, 30,
13.999999, 210,
14, 300,
16.999999, 1000,
17, 2000
],
"circle-blur": 1,
"circle-stroke-width": 0,
"circle-stroke-color": "#fff",
"circle-stroke-opacity": 0
}
}

const cirlce_med = {};


0 comments on commit 015d541

Please sign in to comment.