Add aggregation map for traps
This also makes the first time I've done a Mapbox map within a web component. It's not officially supported according to: https://github.com/mapbox/mapbox-gl-js/issues/12796 but I found a codepen that had a working example: https://codepen.io/keichan34/pen/ZEKqeEj?editors=1111
This commit is contained in:
parent
08c6a7f884
commit
948f967a16
10 changed files with 356 additions and 115 deletions
5
db/migrations/00033_h3cell_fieldseeker_traplocation.sql
Normal file
5
db/migrations/00033_h3cell_fieldseeker_traplocation.sql
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
-- +goose Up
|
||||
ALTER TABLE fieldseeker.traplocation ADD COLUMN h3cell h3index GENERATED ALWAYS AS (h3_latlng_to_cell(geospatial, 15)) STORED;
|
||||
|
||||
-- +goose Down
|
||||
ALTER TABLE fieldseeker.traplocation DROP COLUMN h3cell;
|
||||
Loading…
Add table
Add a link
Reference in a new issue