Update levels of detail or new viewer perspectives
authorAndy Spencer <andy753421@gmail.com>
Fri, 10 Feb 2012 18:28:54 +0000 (18:28 +0000)
committerAndy Spencer <andy753421@gmail.com>
Sun, 12 Feb 2012 07:05:31 +0000 (07:05 +0000)
Again..

src/plugins/alert.c
src/plugins/radar.c

index e1d6c91..ee9b143 100644 (file)
@@ -397,7 +397,7 @@ gboolean fips_group_state(gpointer key, gpointer value, gpointer data)
        GList  *counties = value;
        GList **states   = data;
        GritsPoly *poly  = fips_combine(counties);
-       GRITS_OBJECT(poly)->lod = EARTH_R/5;
+       GRITS_OBJECT(poly)->lod = EARTH_R/10;
        *states = g_list_prepend(*states, poly);
        g_list_free(counties);
        return FALSE;
index b53bfe4..dd57984 100644 (file)
@@ -288,7 +288,7 @@ gboolean _site_add_marker(gpointer _site)
        RadarSite *site = _site;
        site->marker = grits_marker_new(site->city->name);
        GRITS_OBJECT(site->marker)->center = site->city->pos;
-       GRITS_OBJECT(site->marker)->lod    = EARTH_R*2*site->city->lod;
+       GRITS_OBJECT(site->marker)->lod    = EARTH_R*0.75*site->city->lod;
        grits_viewer_add(site->viewer, GRITS_OBJECT(site->marker),
                        GRITS_LEVEL_OVERLAY, FALSE);
        return FALSE;