This commit is contained in:
Alexander Kiryukhin 2020-08-17 13:23:27 +03:00
parent 7f1bb18fd6
commit 32a2350965
No known key found for this signature in database
GPG key ID: 8CDA417C9098753B
3 changed files with 10 additions and 5 deletions

2
go.mod
View file

@ -1,4 +1,4 @@
module OsmStatic
module github.com/neonxp/StaticMap
go 1.14

View file

@ -1,7 +1,12 @@
/*
Copyright © 2020 Alexander Kiryukhin <a.kiryukhin@mail.ru>
This file is part of StaticMap project.
*/
package main
import (
"github.com/labstack/echo/v4"
"github.com/neonxp/StaticMap/pkg/static"
"log"
"strconv"
)
@ -35,7 +40,7 @@ func main() {
if zoom > 20 {
zoom = 20
}
img, err := GetMapImage(lat, lon, zoom, w, h)
img, err := static.GetMapImage(lat, lon, zoom, w, h)
if err != nil {
return err
}

View file

@ -1,8 +1,8 @@
/*
Copyright © 2020 Alexander Kiryukhin <ak@bytechain.ru>
This file is part of OsmStatic project.
Copyright © 2020 Alexander Kiryukhin <a.kiryukhin@mail.ru>
This file is part of StaticMap project.
*/
package main
package static
import (
"bytes"