From 643e6321c3608019a975c512a1f12d2979f62fb6 Mon Sep 17 00:00:00 2001 From: Serge Noiraud Date: Sun, 21 Mar 2010 15:59:20 +0000 Subject: [PATCH] GeoView : Issue 3749: better way to place the icon at the same place as googlemap do. svn: r14893 --- src/plugins/view/geoview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/view/geoview.py b/src/plugins/view/geoview.py index b900b58de..3c258f768 100644 --- a/src/plugins/view/geoview.py +++ b/src/plugins/view/geoview.py @@ -1660,7 +1660,7 @@ class GeoView(HtmlView): ipath = os.path.join(const.ROOT_DIR, 'images/22x22/', '%s.png' % value ) upath = urlparse.urlunsplit(('file', '', URL_SEP.join(ipath.split(os.sep)), '', '')) - self.mapview.write("my_marker.setIcon(\"%s\",[22,22]);" % upath) + self.mapview.write("my_marker.setIcon(\"%s\",[22,22],[0,22]);" % upath) self.mapview.write("my_marker.setShadowIcon(\"%s\",[0,0]);" % upath) def _show_title(self, title):