[OpenLayers-Users] problem with panel control

Christopher Schmidt crschmidt at metacarta.com
Wed Mar 21 08:44:26 EDT 2007


On Wed, Mar 21, 2007 at 08:10:36AM -0400, Schuyler Erle wrote:
> On Wed, 2007-03-21 at 06:46 -0500, Christopher Schmidt wrote:
> > On Wed, Mar 21, 2007 at 09:09:00AM +0100, Eric Lemoine wrote:
> > > Hi all,
> > > 
> > > I'd like to build my own panel control object, composed of a
> > > Navigation and a DrawFeature. So far I've had no success, my panel
> > > refuses to display!
> > 
> > You need some CSS :) Refer to the bottom of theme/default/style.css for
> > the editingtoolbar CSS: You'll want a:
> 
> I wonder if panels should have a default style class so that this sort
> of thing doesn't happen...

The problem is that the default displayClass is based on the CLASS_NAME,
so although that would work fine for something like panel.html (where
Control.Panel is being used directly), Erik is using a subclass called
'myToolbar', which we can't guess the name of.

However, I'd gladly take a patch to add default styling for panels: the
only reason it doesn't exist yet is because I didn't know where I should
drop the panels by default, so I just left it. 

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list