[Commits] r231 - sandbox/opengeo/drake/trunk/apps/geoexplorer

commits at geoext.org commits at geoext.org
Wed Mar 18 18:54:06 CET 2009


Author: dwins
Date: 2009-03-18 18:54:06 +0100 (Wed, 18 Mar 2009)
New Revision: 231

Modified:
   sandbox/opengeo/drake/trunk/apps/geoexplorer/index.html
Log:
Remove some console.log statements (oops) and use new anchoring API for popup positioning.


Modified: sandbox/opengeo/drake/trunk/apps/geoexplorer/index.html
===================================================================
--- sandbox/opengeo/drake/trunk/apps/geoexplorer/index.html	2009-03-18 17:53:34 UTC (rev 230)
+++ sandbox/opengeo/drake/trunk/apps/geoexplorer/index.html	2009-03-18 17:54:06 UTC (rev 231)
@@ -48,18 +48,13 @@
                             var html = evt.features && evt.features.length
                                 ? 'Found ' + evt.features.length + ' features' 
                                 : evt.text;
-                            var lonLat = GeoExplorer.map.getLonLatFromPixel(evt.clickPosition);
+                            var lonlat = GeoExplorer.map.getLonLatFromPixel(evt.clickPosition);
                             var win = new GeoExt.popup.Popup({
                                 html: html,
                                 title: "Feature Info",
                                 width: 250,
-                                feature: new OpenLayers.Feature.Vector(
-                                    new OpenLayers.Geometry.Point(lonLat.lon, lonLat.lat) 
-                                )
+                                lonlat: lonlat
                             });
-                            console.log(evt.clickPosition);
-                            console.log(lonLat);
-                            console.log(win);
                             win.addToMapPanel(GeoExplorer.mapPanel);
                             win.show();
                         }



More information about the Commits mailing list