summaryrefslogtreecommitdiff
path: root/vendor/github.com/felix/go-staticmaps/map_object.go
diff options
context:
space:
mode:
authorFelix Hanley <felix@userspace.com.au>2017-03-19 15:19:42 +0000
committerFelix Hanley <felix@userspace.com.au>2017-03-19 15:19:42 +0000
commit8a541d499b6f117cd3a81e475ee779ba60fc0637 (patch)
tree7b3b5326235725ab93056b5ff4637d987fb0a7b6 /vendor/github.com/felix/go-staticmaps/map_object.go
parentfe847b2d01060044274d20d2c35ae01a684d4ee3 (diff)
downloadcrjw-maps-8a541d499b6f117cd3a81e475ee779ba60fc0637.tar.gz
crjw-maps-8a541d499b6f117cd3a81e475ee779ba60fc0637.tar.bz2
use golang dep tool for depsHEADmaster
Diffstat (limited to 'vendor/github.com/felix/go-staticmaps/map_object.go')
-rw-r--r--vendor/github.com/felix/go-staticmaps/map_object.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/github.com/felix/go-staticmaps/map_object.go b/vendor/github.com/felix/go-staticmaps/map_object.go
new file mode 100644
index 0000000..d174b51
--- /dev/null
+++ b/vendor/github.com/felix/go-staticmaps/map_object.go
@@ -0,0 +1,13 @@
+package sm
+
+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)
+}