<div dir="ltr">I have put displayProjection option also in MousePosition control:<div><br></div><div><div>map.addControl(</div><div> new OpenLayers.Control.MousePosition({</div><div> prefix: 'coordinates: ',</div>
<div> separator: ' , ',</div><div> numDigits: 2,</div><div> displayProjection:new OpenLayers.Projection("EPSG:4326")</div><div> })</div>
<div> );</div></div><div><br></div><div>but I see always Mercator and not UTM33 coordinate. Why?</div><div><br></div><div>Giuseppe</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014/1/15 Giuseppe Falcone <span dir="ltr"><<a href="mailto:falcone.giuseppe@gmail.com" target="_blank">falcone.giuseppe@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi all,</div><div><br></div><div>I have a system with OSM as baseMap. I want show coordinate in WGS84 UTM33-N but I see wrong value.</div>
<div>This is a sample page. There is any error?</div><div>Thanks a lot.</div>
<div><br></div><div>Giuseppe</div><div><br></div><div><br></div><div><!DOCTYPE html></div><div><html></div><div> <head></div><div> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></div>
<div> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"></div><div> <meta name="apple-mobile-web-app-capable" content="yes"></div>
<div> <title>OSM Example</title></div><div> <link rel="stylesheet" href="style.css" type="text/css"></div><div> <script src="OpenLayers.js"></script></div>
<div> <script type="text/javascript"></div><div> var map;</div><div><br></div><div> function init() {</div><div> map = new OpenLayers.Map('map',{</div><div>
'projection':new OpenLayers.Projection("EPSG:3857"),</div><div> 'displayProjection':new OpenLayers.Projection("EPSG:32633")</div><div> });</div>
<div><br></div><div> map.addControl(</div><div> new OpenLayers.Control.MousePosition({</div><div> prefix: 'coordinates: ',</div><div> separator: ' , ',</div>
<div> numDigits: 2</div><div> })</div><div> );</div><div> </div><div> var osm = new OpenLayers.Layer.OSM("OSM", "<a href="http://tile.openstreetmap.org/$%7Bz%7D/$%7Bx%7D/$%7By%7D.png" target="_blank">http://tile.openstreetmap.org/${z}/${x}/${y}.png</a>");</div>
<div><br></div><div> var fromProjection = new OpenLayers.Projection("EPSG:4326");</div><div><br></div><div> map.addControl(new OpenLayers.Control.PanZoomBar());</div><div> map.addLayer(osm);</div>
<div> map.setBaseLayer(osm);</div><div> </div><div> map.setCenter(new OpenLayers.LonLat(14.84, 40.8).transform(fromProjection, map.getProjectionObject()), 8);</div><div><br></div>
<div> }</div><div> </script></div><div> </head></div><div> <body onload="init()"></div><div> <h1 id="title">OSM Example</h1></div><div> <div id="tags"></div>
<div> wfs, vector, osm</div><div> </div></div><div> <p id="shortdesc"></div><div> OSMexample</div><div> </p></div><div> <div id="map" class="smallmap"></div></div>
<div> </body></div><div></html></div><div><br></div></div>
</blockquote></div><br></div>