<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.30.3">
</HEAD>
<BODY LINK="#000099">
Hi Zsolt<BR>
<BR>
in your OL map config you have to set the map to 900913 (spherical mercator) and set the display projection using displayProjection:<BR>
(you have to use 900913 if using Google layers ... else nothing is in the right place)<BR>
 <BR>
---------------------------------<BR>
<BR>
        var ol_map_options = {<BR>
                        id: 'map',<BR>
                        units: &quot;m&quot;,<BR>
                        projection: new OpenLayers.Projection(&quot;EPSG:900913&quot;),                 //so everything fits on Google Earth Layers<BR>
&nbsp;&nbsp;&nbsp;                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; displayProjection: new OpenLayers.Projection(&quot;EPSG:4326&quot;),&nbsp;&nbsp; // what is shown in the bottom right corner... I usually use 4326 ...<BR>
                        controls: [<BR>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; new OpenLayers.Control.Navigation(), <BR>
                                new OpenLayers.Control.PanZoomBar(), <BR>
                                new OpenLayers.Control.ScaleLine(), <BR>
                &nbsp;                 new OpenLayers.Control.MousePosition() //the mouse position co-ords display<BR>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ]<BR>
                };<BR>
<BR>
map = new OpenLayers.Map('map', ol_map_options);<BR>
<BR>
---------------------------------<BR>
<BR>
then set the projection of your layer that you are adding ( i've used a vector layer here - but you can change to what you need...):<BR>
<BR>
---------------------------------<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var vector_sites = new OpenLayers.Layer.Vector(&quot;sites&quot;, <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&nbsp; styleMap: new OpenLayers.StyleMap(style)&nbsp;&nbsp; },<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //set the projection of the layer - this you would set to &quot;EPSG:23700&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp; projection: new OpenLayers.Projection(&quot;EPSG:4326&quot;)&nbsp; }<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ); <BR>
 <BR>
map.addLayer(vector_sites);<BR>
<BR>
---------------------------------<BR>
<BR>
Regards<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
-- <BR>
<B>Glenn Mullett</B><BR>
<I><FONT SIZE="1"><FONT COLOR="#333333">BTech(Nature Cons) PGDip(UNIGIS)</FONT></FONT></I><BR>
<FONT SIZE="2"><FONT COLOR="#333333">H.O.D. GIS</FONT></FONT><BR>
<FONT SIZE="2"><FONT COLOR="#333333">Lidwala Consulting Engineers</FONT></FONT><BR>
<BR>
<FONT COLOR="#808080">____________________________________________________________________________________________________________________________________________________</FONT><BR>
<B><I><FONT SIZE="1"><FONT COLOR="#808080">Lidwala Consulting Engineers (SA) (Pty) Ltd email Disclaimer and confidentiality note:</FONT></FONT></I></B><BR>
<I><FONT SIZE="1"><FONT COLOR="#808080">This e-mail, its attachments and any rights attaching hereto are, unless the content clearly indicates otherwise, the property of Lidwala Consulting Engineers (SA) (Pty) Ltd and its subsidiaries. It is confidential, private and intended for only the addressee.&nbsp; Should you not be the addressee and receive this e-mail by mistake, kindly notify the sender, and delete this e-mail immediately.&nbsp; Do not disclose or use it in any way. Views and opinions expressed in this e-mail are those of the sender unless clearly stated as those of Lidwala Consulting Engineers (SA) (Pty) Ltd.&nbsp; Lidwala Consulting Engineers (SA) (Pty) Ltd accepts no liability for any loss or damages howsoever incurred, or suffered, resulting or arising, from the use of this email or its attachments.&nbsp; Lidwala Consulting Engineers (SA) (Pty) Ltd does not warrant the integrity of this e-mail nor that it is free of errors, viruses, interception or interference.</FONT></FONT></I><BR>
<FONT COLOR="#808080">____________________________________________________________________________________________________________________________________________________</FONT> <BR>
<BR>
</TD>
</TR>
</TABLE>
On Mon, 2011-08-29 at 09:37 +0200, Magyar Zsolt wrote:
<BLOCKQUOTE TYPE=CITE>
    <FONT SIZE="2"><FONT COLOR="#0000ff">Dear All,</FONT></FONT><BR>
    <BR>
    <FONT SIZE="2"><FONT COLOR="#0000ff">&nbsp;</FONT></FONT><BR>
    <BR>
    <FONT SIZE="2"><FONT COLOR="#0000ff">I'm sorry for my help request again! I didn&#8217;t get any e-mail about this problem below somehow. (I think it was up to me, sorry!) </FONT></FONT><BR>
    <BR>
    <FONT SIZE="2"><FONT COLOR="#0000ff">Thanks!</FONT></FONT><BR>
    <BR>
    <FONT SIZE="2"><FONT COLOR="#0000ff">&nbsp;</FONT></FONT><BR>
    <BR>
    <FONT SIZE="2"><FONT COLOR="#0000ff">Zsolt</FONT></FONT><BR>
    <BR>
    <FONT SIZE="2"><FONT COLOR="#0000ff">&nbsp;</FONT></FONT><BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <DIV ALIGN=center>
<HR>
</DIV>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <B><FONT SIZE="2"><FONT COLOR="#000000">From:</FONT></FONT></B><FONT COLOR="#000000"><FONT SIZE="2"> Magyar Zsolt </FONT></FONT><BR>
    <B><FONT SIZE="2"><FONT COLOR="#000000">Sent:</FONT></FONT></B><FONT COLOR="#000000"><FONT SIZE="2"> Thursday, August 18, 2011 11:20 AM</FONT></FONT><BR>
    <B><FONT SIZE="2"><FONT COLOR="#000000">To:</FONT></FONT></B><FONT COLOR="#000000"><FONT SIZE="2"> 'openlayers-users@lists.osgeo.org'</FONT></FONT><BR>
    <B><FONT SIZE="2"><FONT COLOR="#000000">Subject:</FONT></FONT></B><FONT COLOR="#000000"><FONT SIZE="2"> Projection problem</FONT></FONT><BR>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">&nbsp;</FONT><BR>
    <BR>
    Please help me!<BR>
    <BR>
    <A HREF="http://erdoterkep.mgszh.gov.hu/epsg23700test/eotr_test.html">http://erdoterkep.mgszh.gov.hu/epsg23700test/eotr_test.html</A> <BR>
    <BR>
    On the map you can see Forestry Directorates of Hungary and some test lines. Horizontal coordinates of these lines are exactly 450000, 640000 and 880000 in the EPSG:23700 reference system. The problem is - as you can see on cursor location bottom right - that the coordinates are not correct with google maps. There are 70m difference somewhere.<BR>
    <BR>
    The projection is OK, the maps are on the right place, but the coordinates are wrong (a bit) somehow.<BR>
    <BR>
    On the map of Geoserver Openlayers Layer preview you can see the correct coordinates. (see pictures)<BR>
    <BR>
    <FONT SIZE="2"><FONT COLOR="#00ff00">&nbsp;</FONT></FONT><BR>
    <BR>
    <FONT COLOR="#000000">What can I do to make it show the correct coordinate numbers?</FONT><BR>
    <BR>
    <FONT COLOR="#000000">&nbsp;</FONT><BR>
    <BR>
    <FONT COLOR="#000000">Thanks for advance!</FONT><BR>
    <BR>
    <FONT COLOR="#000000">&nbsp;</FONT><BR>
    <BR>
    <FONT COLOR="#000000">Zsolt, Magyar</FONT><BR>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<PRE>
_______________________________________________
Users mailing list
<A HREF="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</A>
<A HREF="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</A>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>