+void vik_viewport_get_min_max_lat_lon ( VikViewport *vp, gdouble *min_lat, gdouble *max_lat, gdouble *min_lon, gdouble *max_lon )
+{
+ VikCoord tleft, tright, bleft, bright;
+
+ vik_viewport_screen_to_coord ( vp, 0, 0, &tleft );
+ vik_viewport_screen_to_coord ( vp, vik_viewport_get_width(vp), 0, &tright );
+ vik_viewport_screen_to_coord ( vp, 0, vik_viewport_get_height(vp), &bleft );
+ vik_viewport_screen_to_coord ( vp, vp->width, vp->height, &bright );