diff --git a/src/DataViews/GeoView.py b/src/DataViews/GeoView.py index dc43df7f1..5723f6fa2 100644 --- a/src/DataViews/GeoView.py +++ b/src/DataViews/GeoView.py @@ -121,6 +121,7 @@ _JAVASCRIPT = '''\n") 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, @@ -853,8 +853,7 @@ class GeoView(HtmlView): self.mapview.write("

%s

" % h3mess) if h4mess: self.mapview.write("

%s

" % h4mess) - margin = 10 - self.mapview.write("
\n") + self.mapview.write("
\n") # end geo-content self.mapview.write("
\n" % (self.height - 130 )) @@ -872,7 +871,7 @@ class GeoView(HtmlView): "placeclick(%d);\">%s" % (place[1], place[0]) self.mapview.write("%s\n" % self.plist) self.mapview.write("\n") self.mapview.write("\n%s" % self._add_stylesheet()) if _alternate_map() == "microsoft": self.mapview.write("\n") @@ -1420,8 +1423,6 @@ class GeoView(HtmlView): latitude = place.get_latitude() latitude, longitude = conv_lat_lon(latitude, longitude, "D.D8") - city = place.get_main_location().get_city() - country = place.get_main_location().get_country() # place.get_longitude and place.get_latitude return # one string. We have coordinates when the two values # contains non null string. diff --git a/src/data/GeoView.css b/src/data/GeoView.css index 56395dddd..9c3b25820 100644 --- a/src/data/GeoView.css +++ b/src/data/GeoView.css @@ -34,6 +34,8 @@ GRAMPS. If not, see . # $Id: $ GeoView Styles + + color:#2e3436; # tango color Aluminium ----------------------------------------------------- */ #openstreetmap @@ -41,6 +43,8 @@ GRAMPS. If not, see . border: 3px black solid; margin-left:auto; margin-right:auto; + min-height:400px; + min-width: 300px; } #google @@ -48,6 +52,8 @@ GRAMPS. If not, see . border: 3px black solid; margin-left:auto; margin-right:auto; + min-height:400px; + min-width: 300px; } #openlayers @@ -55,6 +61,8 @@ GRAMPS. If not, see . border: 3px black solid; margin-left:auto; margin-right:auto; + min-height:400px; + min-width: 300px; } #microsoft @@ -62,6 +70,8 @@ GRAMPS. If not, see . border: 3px black solid; margin-left:auto; margin-right:auto; + min-height:400px; + min-width: 300px; } #yahoo @@ -69,6 +79,8 @@ GRAMPS. If not, see . border: 3px black solid; margin-left:auto; margin-right:auto; + min-height:400px; + min-width: 300px; } /* InfoWindow */ @@ -89,9 +101,8 @@ GRAMPS. If not, see . top:0; left:0; font-size:10pt; - height:100px; - width=100% - overflow:auto; + height:90px; + overflow-y:auto; } #geo-theplaces ul { @@ -103,8 +114,7 @@ GRAMPS. If not, see . padding: 0; } -#geo-title -{ +#geo-title { list-style-type: none; margin-left: 5px; } @@ -126,10 +136,8 @@ GRAMPS. If not, see . #geo-liste:hover li { } -#geo-theplaces -{ +#geo-theplaces { position:absolute; - opacity:.90; color:#2e3436; top:120px; left:100px; @@ -137,47 +145,38 @@ GRAMPS. If not, see . border: 0px; overflow:auto; max-height:50%; + z-index:800; /* must be greater than 748 to be visible on openlayers */ } -#geo-theplace -{ +#geo-theplace { display: block; } -#geo-theplace a -{ +#geo-theplace a { color: #2e3436; display: block; } -#geo-theplace a:visited -{ +#geo-theplace a:visited { color: #2e3436; background-color: transparent; text-decoration:none; - opacity:1.0; } -#geo-theplace a:active -{ +#geo-theplace a:active { color: #2e3436; background-color: transparent; text-decoration:none; - opacity:1.0; } -#geo-theplaces a:hover -{ +#geo-theplaces a:hover { color: #2e3436; background-color: transparent; text-decoration:none; - opacity:1.0; } -#geo-theplace a:hover -{ +#geo-theplace a:hover { color: #2e3436; background-color: transparent; text-decoration:none; - opacity:1.0; }