From 7af6dd449033b36363da089f0df7d3cc88309819 Mon Sep 17 00:00:00 2001 From: Serge Noiraud Date: Sun, 21 Mar 2010 15:58:25 +0000 Subject: [PATCH] GeoView : Issue 3749: better way to place the icon at the same place as googlemap do. svn: r14892 --- 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 99f71fabe..8d4f3370d 100644 --- a/src/plugins/view/geoview.py +++ b/src/plugins/view/geoview.py @@ -1958,7 +1958,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):