Add organization_id parameter to Tegola
This makes it possible to separate data by organization for different clients
This commit is contained in:
parent
6b8a21664f
commit
839e699582
1 changed files with 8 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue