go-staticmaps/map_object.go
2016-02-28 16:06:30 +01:00

14 lines
261 B
Go

package staticmaps
import (
"github.com/fogleman/gg"
"github.com/golang/geo/s2"
)
// MapObject is the interface for all objects on the map
type MapObject interface {
bounds() s2.Rect
extraMarginPixels() float64
draw(dc *gg.Context, trans *transformer)
}