Add organization_id parameter to Tegola

This makes it possible to separate data by organization for different
clients
This commit is contained in:
Eli Ribble 2025-11-16 21:25:11 +00:00
parent 6b8a21664f
commit 839e699582
No known key found for this signature in database

View file

@ -55,7 +55,7 @@ srid = 4326 # The default srid for this provider. If not provided it
geometry_fieldname = "geometry"
geometry_type="polygon"
id_fieldname = "id"
sql = "SELECT ST_AsMVTGeom(geometry, !BBOX!) AS geometry, id, cell, count_, resolution FROM h3_aggregation WHERE geometry && !BBOX!"
sql = "SELECT ST_AsMVTGeom(geometry, !BBOX!) AS geometry, id, cell, count_, resolution FROM h3_aggregation WHERE geometry && !BBOX! !PARAM!"
[[maps]]
name = "bonn"
@ -90,3 +90,10 @@ center = [-119.175, 36.24, 11.0] # set the center of the map so the user is auto
provider_layer = "nidus.h3_aggregation"
#min_zoom = 5
#max_zoom = 20
[[maps.params]]
name = "organization_id"
token = "!PARAM!"
type = "int"
sql = "AND organization_id = ?"
default_sql = "1"