[Users] OpenLayers.Control.MousePosition vs ExtJS 3.2.1
Eric Lemoine
eric.lemoine at camptocamp.com
Tue Aug 10 14:34:07 CEST 2010
On Fri, Aug 6, 2010 at 11:33 AM, Alexandre Saunier
<alexandre.saunier at camptocamp.com> wrote:
> Hello,
>
> I have tried to integrate a MousePosition control within a mappanel
> toolbar as described in
> http://trac.geoext.org/attachment/ticket/195/195.0.patch
>
> But (at least?) with ExtJS 3.2.1 it doesn't seem to work: the "el"
> property of the component is not defined in the render() method. Thus
> coords are displayed on the map, not in the toolbar. If placed in an
> afterRender() method, "el" seems OK (including the coordinates from
> the control) but nothing is displayed anywhere
For the record, Alexandre and I figured this one out. this.el.dom
(instead of this.el) should be provided to the MousePosition control.
--
Eric Lemoine
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com
More information about the Users
mailing list