Module: nagvis Branch: master Commit: e057d6199c31f8385ff8155a10e557747d0bdf91 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/commit/?id=e057d6199c31f8385ff8155a10e557747d0bdf91
Author: Andriy Skuratov <[email protected]> Date: Wed Aug 19 17:37:07 2009 +0300 gmap:Correct text is shown when clicked on new location. --- .../gmap/view/controls/GMapLocationControl.as | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/uifx/src/modules/gmap/view/controls/GMapLocationControl.as b/uifx/src/modules/gmap/view/controls/GMapLocationControl.as index d86e9fa..a4d2925 100644 --- a/uifx/src/modules/gmap/view/controls/GMapLocationControl.as +++ b/uifx/src/modules/gmap/view/controls/GMapLocationControl.as @@ -90,12 +90,20 @@ package modules.gmap.view.controls title.underline = true var io : InfoWindowOptions = new InfoWindowOptions; - io.title = _location.label; - io.titleFormat = title; - io.content = _location.description; io.hasCloseButton = false; io.pointOffset = new Point(-3, -5); + if(_location.id && _location.id.length > 0) + { + io.title = _location.label; + io.titleFormat = title; + io.content = _location.description; + } + else + { + io.content = _location.address; + } + _map.openInfoWindow(LatLng.fromUrlValue(_location.point), io); } else ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
