Skip to content

Commit cb2afa5

Browse files
authored
Use widgetHeight over screenHeight for map size
1 parent e281698 commit cb2afa5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • service/assistant/widgets

service/assistant/widgets/map.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ func generateRouteMap(ctx context.Context, polyline string) (image.Image, error)
198198
}
199199

200200
request := gmaps.StaticMapRequest{
201-
Size: fmt.Sprintf("%dx%d", screenWidth, screenHeight),
201+
Size: fmt.Sprintf("%dx%d", screenWidth, widgetHeight),
202202
Format: "png8",
203203
MapType: "roadmap",
204204
MapId: config.GetConfig().GoogleMapsStaticMapId,

0 commit comments

Comments
 (0)