Hello I was trying to put a OpenLayers.Control.MousePosition in a Toolbar sin I 
dont want it to be in the map, but I can not achieve it.

 

This is my MapPanel:

 

id: 'eo2_mappanel',

                  map : EO2Heaven.gis.MapManager.getMap(),

                  center: new 
OpenLayers.Bounds(-180,-90,180,90).getCenterLonLat(),

                  extent: new OpenLayers.Bounds(-180,-90,180,90),

                  zoom:0,

                  region : 'center',

                  margins : '0 5 0 0',

                  tbar: new EO2Heaven.widgets.MapToolbar(),

                  html: '<div id="logo"><img  height="75" 
src="./images/eo2heaven/eo2Logo.png" /></div>',

                  bbar: [{xtype:'eo2_scaleselector'},

                        new EO2Heaven.plugins.MousePosition({ 

                                                map: 
EO2Heaven.gis.MapManager.getMap(), 

                                                controlOptions: { 

                                                    prefix: 'Coord: ', 

                                                    numDigits: 3 

                                                } 

                                            })

                        ]

 

But it doesnt work, it is still shown over the map…

 

I also tried:

 

mousePosition: new OpenLayers.Control.MousePosition({div: $('mouseTrack')})

this.bbar.push(Ext.get('mouseTrack'));

 

But it tolds me that there is no bbar to push, and also I am not sure that push 
is a valid method for bbar.

 

Thank you in advance for any help.

Mario.

------------------------------------------------------------------
This e-mail and the documents attached are confidential and intended 
solely for the addressee; it may also be privileged. If you receive 
this e-mail in error, please notify the sender immediately and destroy it. 
As its integrity cannot be secured on the Internet, the Atos Origin 
group liability cannot be triggered for the message content. Although 
the sender endeavours to maintain a computer virus-free network, 
the sender does not warrant that this transmission is virus-free and 
will not be liable for any damages resulting from any virus transmitted. 

Este mensaje y los ficheros adjuntos pueden contener informacion confidencial 
destinada solamente a la(s) persona(s) mencionadas anteriormente 
pueden estar protegidos por secreto profesional. 
Si usted recibe este correo electronico por error, gracias por informar 
inmediatamente al remitente y destruir el mensaje. 
Al no estar asegurada la integridad de este mensaje sobre la red, Atos Origin 
no se hace responsable por su contenido. Su contenido no constituye ningun 
compromiso para el grupo Atos Origin, salvo ratificacion escrita por ambas 
partes. 
Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor 
no puede garantizar nada al respecto y no sera responsable de cualesquiera 
danos que puedan resultar de una transmision de virus. 
------------------------------------------------------------------
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to