diff --git a/src/Config/_GrampsConfigKeys.py b/src/Config/_GrampsConfigKeys.py index 53dc0632c..711e6ee4f 100644 --- a/src/Config/_GrampsConfigKeys.py +++ b/src/Config/_GrampsConfigKeys.py @@ -208,6 +208,7 @@ GEOVIEW_ZOOM = ('geoview', 'zoom', 1) GEOVIEW_LATITUDE = ('geoview', 'latitude', 2) GEOVIEW_LONGITUDE = ('geoview', 'longitude', 2) GEOVIEW_MAP = ('geoview', 'map', 2) +GEOVIEW_STYLESHEET = ('geoview', 'stylesheet', 2) default_value = { DEFAULT_SOURCE : False, @@ -368,4 +369,5 @@ default_value = { GEOVIEW_LATITUDE : "0.0", GEOVIEW_LONGITUDE : "0.0", GEOVIEW_MAP : "person", + GEOVIEW_STYLESHEET : "", } diff --git a/src/DataViews/GeoView.py b/src/DataViews/GeoView.py index f1787d8ab..4f5ca4ab5 100644 --- a/src/DataViews/GeoView.py +++ b/src/DataViews/GeoView.py @@ -56,6 +56,9 @@ import gtk import gen.lib import Utils import Config +import PageView +from gui.utils import add_menuitem +from ReportBase import CSS_FILES from BasicUtils import name_displayer as _nd from PlaceUtils import conv_lat_lon @@ -109,6 +112,7 @@ _HTMLHEADER = ''' This is used to pass messages between javascript and python + {css} \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 " @@ -730,12 +818,12 @@ class GeoView(HtmlView): self.mapview.write("
\n") self.mapview.write("
\n" % (self.height * 0.74)) self.mapview.write("
\n" % \ ((self.width - margin*4), (self.height * 0.74 ))) self.mapview.write("\n") + self.mapview.write("\n%s" % self._add_stylesheet()) if _alternate_map() == "microsoft": self.mapview.write("