<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Cit.:<br>
      <span style="color: rgb(0, 0, 0); font-family: Verdana, Geneva,
        Helvetica, Arial, sans-serif; font-size: 13px; font-style:
        normal; font-variant: normal; font-weight: normal;
        letter-spacing: normal; line-height: normal; orphans: 2;
        text-align: start; text-indent: 0px; text-transform: none;
        white-space: normal; widows: 2; word-spacing: 0px;
        -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
        background-color: rgb(255, 255, 255); display: inline
        !important; float: none;">Set the displayProjection property
        when you create the map to the projection (not the projection
        code) that you want the coordinates to be in.  (looks like it
        should be a projection created from EPSG:4326) The lat/lon being
        passed into the mousecontrol event will be in this projection.
        It look to me like you are getting in projected coordinates but
        trying to use them as lat/long.</span><br>
      <br>
      Done but the problem remains.<br>
      <br>
      Il 20/11/2012 15:28, Riggi Valerio ha scritto:<br>
    </div>
    <blockquote cite="mid:50AB93A1.8080209@virgilio.it" type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      Hi, I'm tryng to display the coordinates on mouse over the map, on
      a WGS84 map and on a Gauss-Boaga map but coordinate seems strange
      to me, is there some error? I'm using the example bellow:<br>
      <br>
      This is the <a moz-do-not-send="true"
        href="http://www.intornoamessina.it/tracking/index.php">WGS84
        map</a> and this is the <a moz-do-not-send="true"
        href="http://www.intornoamessina.it/tracking/index.php?gauss">Gauss-Boaga

        Map</a><br>
      <br>
      And this is the <b>example code</b> I used:<br>
      <br>
          map.addControl(<br>
                      new OpenLayers.Control.MousePosition({<br>
                          prefix: '<div style=\"color: green;
      font-size: 14px; font-weight: bold; background-color: white;
      width: 500px; text-align: left;\">Coordinate: ',<br>
                          suffix: '</div>',<br>
                          separator: ' | ',<br>
                          numDigits: 2,<br>
                          emptyString: '<div style=\"color: red;
      font-size: 14px; font-weight: bold; background-color: white;
      width: 500px; text-align: left;\">Mouse non sulla
      mappa.</div>'<br>
                      })<br>
                  );<br>
          map.events.register("mousemove", map, function(e) {<br>
                      var position = this.events.getMousePosition(e);<br>
                      OpenLayers.Util.getElement("coords").innerHTML =
      position;<br>
                  });<br>
          map.addControl(new OpenLayers.Control.Attribution());<br>
      <br>
      <b>Thanks</b><b><br>
      </b><b>Valerio</b><br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>