On Mon, Sep 27, 2010 at 11:21 PM, Andrew Stewart
<[email protected]> wrote:
> I have searched through the forums on how to do this by using a container
> DIV when declaring my overviewmap control and then using the contentEl to
> put the overview div into my custom panel but it is still not working. With
> my below code for some reason the overviewmap I have does go into the proper
> div but it is still directly above my Panel instead of inside it, can anyone
> assist on what I am doing wrong? Really appreciate it!
Here's what we've used for wrapping a MousePosition in a BoxComponent:
MousePositionBox = Ext.extend(Ext.BoxComponent, {
map: null,
afterRender: function() {
var control = new OpenLayers.Control.MousePosition({
div: this.getEl().dom,
numDigits: 0,
prefix: "Coordinates (m):"
});
this.map.addControl(control);
MousePositionBox.superclass.afterRender.apply(this, arguments);
}
});
Applying this to the OverviewMap might just work.
Cheers,
--
Eric Lemoine
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 96
Mail : [email protected]
http://www.camptocamp.com
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users