Yes, I included proj4js. Actually, when I am not using reference to epsg:3908 my data is displayed just 200 meters to the east from where they should have.<br><br><br><div class="gmail_quote">On Sun, Dec 18, 2011 at 2:43 AM, Zac Spitzer <span dir="ltr">&lt;<a href="mailto:zac.spitzer@gmail.com">zac.spitzer@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">have you included proj4js ?<br>
<div><div class="h5"><br>
On Sun, Dec 18, 2011 at 10:21 AM, Vladimir Stupar<br>
&lt;<a href="mailto:stuparvladimir@gmail.com">stuparvladimir@gmail.com</a>&gt; wrote:<br>
&gt; Hi everyone!<br>
&gt;<br>
&gt; I am building a GIS app in geoDjango with OpenLayers and using data from<br>
&gt; PostGIS in projection EPSG:3908. The base layer is OSM. When I add vector<br>
&gt; data I got it rendered near Brazil instead of Bosnia. I tried everything but<br>
&gt; just can&#39;t get the solution.<br>
&gt;<br>
&gt; Please can anyone help?<br>
&gt;<br>
&gt; Here is the code:<br>
&gt;<br>
&gt; var map, osm, kml;<br>
&gt;<br>
&gt; function init(){<br>
&gt;<br>
&gt;         map = new OpenLayers.Map(&#39;map&#39;);<br>
&gt;<br>
&gt;<br>
&gt;         map.addControl(new OpenLayers.Control.LayerSwitcher());<br>
&gt;<br>
&gt;<br>
&gt;         var osm = new OpenLayers.Layer.OSM(<br>
&gt;<br>
&gt;             &quot;OSM&quot;);<br>
&gt;<br>
&gt;         kml = new OpenLayers.Layer.GML(&quot;KML&quot;, upit,<br>
&gt;<br>
&gt;            {format: OpenLayers.Format.KML,<br>
&gt;<br>
&gt;             projection: new OpenLayers.Projection(&quot;EPSG:3908&quot;)});<br>
&gt;<br>
&gt;<br>
&gt;         map.addLayers([osm, kml]);<br>
&gt;<br>
&gt;<br>
&gt;         map.zoomToExtent(<br>
&gt;            new OpenLayers.Bounds(15.774414, 42.6, 19.662109,<br>
&gt; 45.2).transform(new OpenLayers.Projection(&quot;EPSG:4326&quot;),new<br>
&gt; OpenLayers.Projection(&quot;EPSG:900913&quot;)));<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
&gt;<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Zac Spitzer<br>
Solution Architect / Director<br>
Ennoble Consultancy Australia<br>
<a href="http://www.ennoble.com.au" target="_blank">http://www.ennoble.com.au</a><br>
<a href="http://zacster.blogspot.com" target="_blank">http://zacster.blogspot.com</a><br>
<a href="tel:%2B61%20405%20847%20168" value="+61405847168">+61 405 847 168</a><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Vladimir Stupar<br>Katedra za Ekologiju šuma<br>Šumarski fakultet, Univerzitet u Banjaluci<br>S. Stepanovića 75a, 78000 Banjaluka<br>Bosna i Hercegovina<br>
tel.:+38765692006<br>fax.:+38751460550<br>e-mail: <a href="mailto:stuparvladimir@gmail.com">stuparvladimir@gmail.com</a><br>skype: vmstupar<br><br>Vladimir Stupar<br>Department for Forest ecology<br>Forestry faculty, University in Banjaluka<br>
S. Stepanovica 75a, 78000 Banjaluka<br>Bosnia &amp; Hercegovina<br>tel.:+38765692006<br>fax.:+38751460550<br>e-mail: <a href="mailto:stuparvladimir@gmail.com">stuparvladimir@gmail.com</a><br>skype: vmstupar<br><br><br>