[OpenLayers-Users] MousePosition Control
Pedrazzi Gelsomini
pedrazzi.gelsomini at gmail.com
Sat Jun 9 13:58:47 EDT 2007
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 <brad at cubewerx.com.au>:
>
> 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:pedrazzi.gelsomini at gmail.com]
> *Sent:* Saturday, 9 June 2007 1:18 AM
> *To:* users at openlayers.org
> *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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070609/5e9db6e5/attachment.html
More information about the Users
mailing list