The title says it all. I'm using GeoExt as part of OpenGeo Suite. I would like to display the current mouse coordinates.
Update: I was getting confused as to what parts of the code are GeoExt and which parts are OpenLayers.
Here's some code. mapPanel is a GeoExt object. mapPanel.map is an OpenLayers object.
var mapPanel = new GeoExt.MapPanel({ // etc.});mapPanel.map.addControl(new OpenLayers.Control.MousePosition());
أكثر...
Update: I was getting confused as to what parts of the code are GeoExt and which parts are OpenLayers.
Here's some code. mapPanel is a GeoExt object. mapPanel.map is an OpenLayers object.
var mapPanel = new GeoExt.MapPanel({ // etc.});mapPanel.map.addControl(new OpenLayers.Control.MousePosition());
أكثر...