Thanks to everyone.
I put the following code in the stylesheet.css of my application and it
works.
div.olControlMousePosition {
bottom: 0em;
right: 3px;
display: block;
position: absolute;
font-family: Arial;
color: #ffffff;
font-size: 13px;
font-weight:bold;
}
Cheers.
Francesca
2007/6/9, bradleyspencer <[EMAIL PROTECTED]>:
Francesca,
I have been using a div for these controls as below and it works fine for
the PanZoomBar and the MousePosition control. However, I have had
problems with the MouseToolbar this way.
This allows me to move the control off the map all together which I prefer
to do.
map.addControl(new OpenLayers.Control.MousePosition({div:$('mousePos')}));
#mousePos{
color:gray;
font-weight:bold;
font-size:10px;
position:absolute;
text-align:left;
top:500px; left:470px;
width:110px; height:10px;
}
I'm not sure if this is right or wrong but it works for me.
Hope it helps.
Cheers,
*Brad*
-----Original Message-----
*From:* Pedrazzi Gelsomini [mailto:[EMAIL PROTECTED]
*Sent:* Saturday, 9 June 2007 1:18 AM
*To:* [email protected]
*Subject:* [OpenLayers-Users] MousePosition Control
Hi everyone....
How can I change the color and the size of the coordinates that appear in
the bottom-right corner of the map when I add the MousePosition Control?
I need to have them a little bit bigger than the defaul and white.
I tried to modify the style.css file that I found in the theme folder, but
it doesnt work...
Cheers,
Francesca Pedrazzi
--
Ilaria Gelsomini
Francesca Pedrazzi
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users