[OpenLayers-Users] Two displayProjections on a map
Jan Hartmann
j.l.h.hartmann at uva.nl
Wed Jan 9 05:12:19 PST 2013
Hi Bart,
I tried it, and I guess it works, but the two controls are displayed one
over the other, and I see only the one last defined. There is a way to
position the Mouseposition control by css:
<style>
.olControlMousePosition {
right 10;use
top:0;
etc
}
but that changes all MousePosition controls the same way. Is there a way
to give an id to a control, so I could use:
#olMousePosition1 {
...
}
#olMousePosition2 {
...
}
Jan
On 1/9/2013 1:43 PM, Bart van den Eijnden wrote:
> Hi Jan,
>
> did you try using two MousePosition controls?
>
> Best regards,
> Bart
>
> --
> Bart van den Eijnden
> OpenGeo - http://opengeo.org <http://opengeo.org/>
> Expert service straight from the developers.
>
>
>
> On Jan 9, 2013, at 1:40 PM, Jan Hartmann <j.l.h.hartmann at uva.nl
> <mailto:j.l.h.hartmann at uva.nl>> wrote:
>
>> Is it possible to have tow displayprojections on a map? I would like
>> to show the actual mouse position both in WGS84 latlon (epsg:4326)
>> and in the projection of the map I am working on. Changing the
>> projection in the Javascript file and starting the application anew
>> does the trick, but I would like to see both coordinate pairs at the
>> same time. Is there a trick to do this?
>>
>> Jan
>> _______________________________________________
>> Users mailing list
>> Users at lists.osgeo.org <mailto:Users at lists.osgeo.org>
>> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130109/206f4954/attachment.html>
More information about the Users
mailing list