[OpenLayers-Users] MousePosition Control
bradleyspencer
brad at cubewerx.com.au
Fri Jun 8 18:22:58 EDT 2007
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;
}
Im 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070609/171b2b74/attachment.html
More information about the Users
mailing list