angenieux / wificompass

Automatically exported from code.google.com/p/wificompass
0 stars 0 forks source link

Grid in MapView #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Implement the drawing of the grid in MapView including the legend.

Original issue reported on code.google.com by tkon...@gmx.net on 14 Feb 2012 at 7:31

GoogleCodeExporter commented 9 years ago

Original comment by tkon...@gmx.net on 14 Feb 2012 at 7:32

GoogleCodeExporter commented 9 years ago
Overrode the draw() method of the MultiTouchDrawable in SiteMap instead of 
painting the grid in the getDrawable() method of SiteMap.

Why?

Drawing a bitmap first and then scaling it in the draw() method is WAY slower 
than directly drawing on the already scaled canvas. Moreover, this way 1-pixel 
lines stay 1-pixel lines at every scale factor. That's nice!

Original comment by tkon...@gmx.net on 15 Feb 2012 at 2:41