From afd1a5bdef179cbf13f3029f4daac27cfb168864 Mon Sep 17 00:00:00 2001 From: Serge Noiraud Date: Thu, 24 Sep 2009 14:05:06 +0000 Subject: [PATCH] GeoView : improvment with css style. svn: r13243 --- src/DataViews/GeoView.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/DataViews/GeoView.py b/src/DataViews/GeoView.py index cc23cc8ff..500b6b3b2 100644 --- a/src/DataViews/GeoView.py +++ b/src/DataViews/GeoView.py @@ -644,8 +644,8 @@ class GeoView(HtmlView): modulo = 10 self.minyear -= self.minyear % 10 self.maxyear -= self.maxyear % 10 - self.yearint = (self.maxyear-self.minyear)/self.maxgen - self.yearint -= self.yearint % modulo + self.yearint = ( self.maxyear - self.minyear ) / 10 + 5 + self.yearint -= ( self.yearint % modulo ) if self.yearint == 0: self.yearint = 10 self.mapview.write("\n") self.mapview.write("\n") self.mapview.write("\n") + self.mapview.write("
\n") if maxpages > 1: message = _("There are %d markers to display. They are split up " "over %d pages of %d markers : " % (self.nbmarkers, maxpages, NB_MARKERS_PER_PAGE)) - self.mapview.write("
%s
\n" % message) + self.mapview.write("%s
\n" % message) if curpage != 1: priorfile = os.path.join(GEOVIEW_SUBPATH, "GeoV-%c-%05d.html" % @@ -693,7 +696,6 @@ class GeoView(HtmlView): self.mapview.write("\n++" % nextfile) else: self.mapview.write(" ++") - self.mapview.write("\n
\n") if self.without != 0: self.without_coord_file = os.path.join(GEOVIEW_SUBPATH, "without_coord.html") @@ -723,12 +725,15 @@ class GeoView(HtmlView): if h4mess: self.mapview.write("

%s

" % h4mess) margin = 10 - self.mapview.write("\n
\n") + self.mapview.write("
\n" % (self.height * 0.74)) self.mapview.write("
\n" % \ ((self.width - margin*4), (self.height * 0.74 ))) self.mapview.write("