Add basic MapBox integration.
It's just a demo at this point.
This commit is contained in:
parent
fc40309dd0
commit
a6fe8f9027
4 changed files with 29 additions and 5 deletions
2
html.go
2
html.go
|
|
@ -81,6 +81,7 @@ type ContentDashboard struct {
|
|||
CountInspections int
|
||||
CountMosquitoSources int
|
||||
CountServiceRequests int
|
||||
MapboxToken string
|
||||
LastSync *time.Time
|
||||
Org string
|
||||
RecentRequests []ServiceRequestSummary
|
||||
|
|
@ -214,6 +215,7 @@ func htmlDashboard(ctx context.Context, w http.ResponseWriter, user *models.User
|
|||
CountMosquitoSources: int(sourceCount),
|
||||
CountServiceRequests: int(serviceCount),
|
||||
LastSync: lastSync,
|
||||
MapboxToken: MapboxToken,
|
||||
Org: org.Name.MustGet(),
|
||||
RecentRequests: requests,
|
||||
User: userContent,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue