[OpenLayers-Users] NavToolBar and direction

Christopher Schmidt crschmidt at metacarta.com
Thu Apr 26 07:49:09 EDT 2007


On Thu, Apr 26, 2007 at 01:27:13PM +0200, Bart van den Eijnden (OSGIS) wrote:
> Hi list,
> 
> it says MouseToolBar is deprecated, and one should use NavToolBar.
> 
> Is there a similar thing to direction:horizontal/vertical?

CSS change. 

First,  follow the docs on:

http://openlayers.org/dev/examples/custom-style.html

That is:
 * Add <link rel> to page
 * Set theme to null

Then add this CSS in your page somewhere after the stylesheet
definition.  

.olControlNavToolbar {
  top: 300px;
  left: 6px;
  width: 150px;
  height: 30px;
}
.olControlNavToolbar div {
  width:  28px;
  height: 28px;
  position: relative;
  float:left
}

This will change the NavToolbar to be left/right oriented. You can
change its positioning on the page by changing the top/left values.

Please let us know if that doesn't work for some reason.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list