/* Reload POIs if we zoom out or have moved */
if ((last_zoom<_zoom || prev_ux!=unitx || prev_uy!=unity) && poi_store!=NULL) {
- g_printf("Reloading POIs\n");
+ g_debug("Reloading POIs");
map_poi_cache_clear();
} else {
- g_printf("Using cached POIs\n");
+ g_debug("Using cached POIs");
}
if (poi_store==NULL) {
void
map_render_all_pois(guint width, guint height)
{
-GdkPixbuf *pixbuf = NULL;
GtkTreeIter iter;
guint unitx, unity;
gint poix, poiy;
if (_poi_zoom <= _zoom)
return;
-unitx = x2unit(0);
-unity = y2unit(height);
+unitx=x2unit(0);
+unity=y2unit(height);
unit2latlon(unitx, unity, lat1, lon1);
-unitx = x2unit(width);
-unity = y2unit(0);
+unitx=x2unit(width);
+unity=y2unit(0);
unit2latlon(unitx, unity, lat2, lon2);
if (map_poi_reload_poi(unitx, unity, lat1, lon1, lat2, lon2)==FALSE)
prev_uy=unity;
while (valid) {
+ GdkPixbuf *pixbuf;
GdkGC *gc;
gchar *label;
gchar *icon=NULL, *color=NULL;