Fix: stringintconv: conversion from int to string

This commit is contained in:
Nils
2025-08-27 11:02:51 +02:00
parent ab8cd292db
commit 8d51c1c173
+1 -1
View File
@@ -404,7 +404,7 @@ func downloadTile(ctx context.Context, msgChan chan<- WSMessage, tile Tile, mapS
}
// Construct the URL for the tile.
subdomain := string('a' + rand.Intn(3))
subdomain := []string{"a", "b", "c"}[rand.Intn(3)]
url := strings.Replace(mapStyle, "{s}", subdomain, -1)
url = strings.Replace(url, "{z}", fmt.Sprintf("%d", tile.Z), -1)
url = strings.Replace(url, "{x}", fmt.Sprintf("%d", tile.X), -1)