Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions create-static-map/create-static-map.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ func main() {
Areas []string `short:"a" long:"area" description:"Add an area to the static map" value-name:"AREA"`
Circles []string `short:"C" long:"circle" description:"Add a circle to the static map" value-name:"CIRCLE"`
ThunderforstAPIKey string `long:"thunderforestapikey" description:"API key to use with Thunderforst tile servers" value-name:"APIKEY" default:"NONE"`
Attribution string `long:"attribution" description:"Override the attribution text" value-name:"ATTRIBUTION"`
}

parser := flags.NewParser(&opts, flags.HelpFlag|flags.PassDoubleDash)
Expand Down Expand Up @@ -213,6 +214,10 @@ func main() {
ctx.SetUserAgent(opts.UserAgent)
}

if parser.FindOptionByLongName("attribution").IsSet() {
ctx.OverrideAttribution(opts.Attribution)
}

handleAreasOption(ctx, opts.Areas)
handleMarkersOption(ctx, opts.Markers)
handleImageMarkersOption(ctx, opts.ImageMarkers)
Expand Down