mirror of
https://github.com/imjasonh/staticmaps
synced 2026-07-11 23:49:48 +00:00
fix bugs with static maps: WxH and enc: for polylines
This commit is contained in:
parent
1704d37fbe
commit
a727458503
1 changed files with 2 additions and 2 deletions
|
|
@ -64,7 +64,7 @@ type Size struct {
|
|||
}
|
||||
|
||||
func (s Size) String() string {
|
||||
return fmt.Sprintf("%dx%d", s.H, s.W)
|
||||
return fmt.Sprintf("%dx%d", s.W, s.H)
|
||||
}
|
||||
|
||||
// StaticMapOpts defines options for StaticMap requests.
|
||||
|
|
@ -223,7 +223,7 @@ func (p Path) encode() string {
|
|||
style += "|"
|
||||
}
|
||||
if p.Polyline != "" {
|
||||
return style + p.Polyline
|
||||
return style + "enc:" + p.Polyline
|
||||
}
|
||||
return style + encodeLocations(p.Locations)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue