]> err.no Git - mapper/commitdiff
Display poi text only when zoomed in close
authorKaj-Michael Lang <milang@onion.tal.org>
Mon, 16 Jul 2007 14:07:52 +0000 (17:07 +0300)
committerKaj-Michael Lang <milang@onion.tal.org>
Mon, 16 Jul 2007 14:07:52 +0000 (17:07 +0300)
src/map-poi.c

index 7f55a13f97940295d27ab28bd06c8b186d91126f..f729d6d3c0e537311623bad79cb8a86fb7cafb3e 100644 (file)
@@ -109,7 +109,8 @@ while (SQLITE_ROW == sqlite3_step(_stmt_select_poi)) {
                                   poiy - (gint) (1.5f * _draw_width),
                                   3 * _draw_width,
                                   3 * _draw_width);
-               map_poi_title(poix, poiy + 4, poi_label);
+               if (_zoom<3)
+                       map_poi_title(poix, poiy + 4, poi_label);
        } else {
                gdk_draw_pixbuf(_map_pixmap,
                                _gc[COLORABLE_POI],