]> Pileus Git - aweather/commitdiff
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 e1d6c91a80409552d0653a03d899b3c42a961f46..ee9b1434803536bfc94317ea534b59361832983a 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 b53bfe41a7beee20cacada69b9e6040e847d3448..dd57984e9003939e22bd809366384df28e7a293a 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;