mirror of
https://github.com/Cyclenerd/offline-map-tile-downloader.git
synced 2026-05-31 03:44:54 +02:00
Fix: stringintconv: conversion from int to string
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user