From 27c21d0a096b50169bd683b8e20a232f00693b67 Mon Sep 17 00:00:00 2001 From: Serge Noiraud Date: Sat, 12 Jun 2010 09:18:27 +0000 Subject: [PATCH] NarrativeWeb : add icons and correct a drift problem with openlayers. svn: r15559 --- src/plugins/webreport/NarrativeWeb.py | 63 +++++++++++++++++++-------- 1 file changed, 44 insertions(+), 19 deletions(-) diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index b48202fc9..544a4804e 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -12,6 +12,7 @@ # Copyright (C) 2008-2010 Rob G. Healey # Copyright (C) 2010 Doug Blank # Copyright (C) 2010 Jakim Friant +# Copyright (C) 2010 Serge Noiraud # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -2367,44 +2368,64 @@ class PlacePage(BasePage): """ @@ -5313,8 +5334,12 @@ class NavWebReport(Report): for fname in js_files: from_path = os.path.join(const.MAPSTRACTION_DIR, fname) self.copy_file(from_path, fname, "mapstraction") - fname = os.path.join(const.MAPSTRACTION_DIR, "crosshairs.png") - self.copy_file(fname, "crosshairs.png", "mapstraction") + image_names = [ "gramps-geo-mainmap.png", "gramps-geo-altmap.png" ] + for image_name in image_names: + fname = os.path.join(const.ROOT_DIR, + 'images', '22x22', + '%s' % image_name ) + self.copy_file(fname, image_name, "images") imgs = [] @@ -6567,7 +6592,7 @@ def _create_place_map(placedetail, latitude, longitude): table += trow trow += Html("td", inline = True) + ( - Html("div", id = "googlev3", attr = 'style = "height: 400px; width: 500px;"') + Html("div", id = "googlev3", attr = 'style = "height: 400px; width: 500px; display: none"') ) trow += Html("td", inline = True) + (