Add basic MapBox integration.

It's just a demo at this point.
This commit is contained in:
Eli Ribble 2025-11-13 17:48:38 +00:00
parent fc40309dd0
commit a6fe8f9027
No known key found for this signature in database
4 changed files with 29 additions and 5 deletions

View file

@ -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,