[OpenLayers-Dev] MousePosition Control Issue

Tim Schaub tschaub at opengeo.org
Wed Mar 9 10:51:48 EST 2011


On 3/9/11 1:59 AM, Denis Rykov wrote:
> I've made a little example which illustrates behavior of MousePosition
> control with layers in different projections.
> It's not clear for me why the same points has different coordinates
> accordingly MousePosition control.
> For example - the same point has coordinates (159;55) and (128;55) in
> different layers.
> What is right way using MousePosition control in such example for
> displays correct results?
> http://gis-lab.info/share/DR/sandbox/reprojection.html

In this example, your map projection is EPSG:54009.  When you display 
your l2, the map projection is still EPSG:54009 (even though you've 
transformed features into EPSG:54010 for that layer).

Tim

-- 
Tim Schaub
OpenGeo - http://opengeo.org
Expert service straight from the developers.


More information about the Dev mailing list