Works like a charm. Thanks Bart
On 1/9/2013 2:18 PM, Bart van den Eijnden wrote:
Hi Jan,
sure, just add displayClass to your Control definitions and make sure
they differ:
/**
* Property: displayClass
* {string} This property is used for CSS related to the drawing
of the
* Control.
*/
displayClass: "",
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 2:12 PM, Jan Hartmann <[email protected]
<mailto:[email protected]>> wrote:
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 <[email protected]
<mailto:[email protected]>> 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
[email protected] <mailto:[email protected]>
http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users