<p>Hi everyone!</p><p>I am building a GIS app in geoDjango with OpenLayers and using data from PostGIS in projection EPSG:3908.
The base layer is OSM. When I add vector data I got it rendered near Brazil instead of Bosnia.
I tried everything but just can&#39;t get the solution.</p>

<p>Please can anyone help?</p>Here is the code:<br clear="all"><pre class="lang-sql prettyprint"><code><span class="pln">var map</span><span class="pun">,</span><span class="pln"> osm</span><span class="pun">,</span><span class="pln"></span><span class="pln"> kml</span><span class="pun">;</span><span class="pln"><br>
</span><span class="kwd">function</span><span class="pln"> init</span><span class="pun">(){</span><span class="pln"><br><br>        map </span><span class="pun">=</span><span class="pln"> new OpenLayers</span><span class="pun">.</span><span class="pln">Map</span><span class="pun">(</span><span class="str">&#39;map&#39;</span><span class="pun">);</span><span class="pln"><br>
<br>        map</span><span class="pun">.</span><span class="pln">addControl</span><span class="pun">(</span><span class="pln">new OpenLayers</span><span class="pun">.</span><span class="pln">Control</span><span class="pun">.</span><span class="pln">LayerSwitcher</span><span class="pun">());</span><span class="pln"><br>
<br>        var osm </span><span class="pun">=</span><span class="pln"> new OpenLayers</span><span class="pun">.</span><span class="pln">Layer</span><span class="pun">.</span><span class="pln">OSM</span><span class="pun">(</span><span class="pln"><br>
            </span><span class="str">&quot;OSM&quot;</span><span class="pun">);</span><span class="pln"><br><br>        kml </span><span class="pun">=</span><span class="pln"> new OpenLayers</span><span class="pun">.</span><span class="pln">Layer</span><span class="pun">.</span><span class="pln">GML</span><span class="pun">(</span><span class="str">&quot;KML&quot;</span><span class="pun">,</span><span class="pln"> upit</span><span class="pun">,</span><span class="pln"> <br>
           </span><span class="pun">{</span><span class="pln">format</span><span class="pun">:</span><span class="pln"> OpenLayers</span><span class="pun">.</span><span class="pln">Format</span><span class="pun">.</span><span class="pln">KML</span><span class="pun">,</span><span class="pln"><br>
            projection</span><span class="pun">:</span><span class="pln"> new OpenLayers</span><span class="pun">.</span><span class="pln">Projection</span><span class="pun">(</span><span class="str">&quot;EPSG:3908&quot;</span><span class="pun">)});</span><span class="pln"><br>
<br>        map</span><span class="pun">.</span><span class="pln">addLayers</span><span class="pun">([</span><span class="pln">osm</span><span class="pun">,</span><span class="pln"> kml</span><span class="pun">]);</span><span class="pln"><br>
<br>        map</span><span class="pun">.</span><span class="pln">zoomToExtent</span><span class="pun">(</span><span class="pln"><br>           new OpenLayers</span><span class="pun">.</span><span class="pln">Bounds</span><span class="pun">(</span><span class="lit">15.774414</span><span class="pun">,</span><span class="pln"> </span><span class="lit">42.6</span><span class="pun">,</span><span class="pln"> </span><span class="lit">19.662109</span><span class="pun">,</span><span class="pln"> </span><span class="lit">45.2</span><span class="pun">).</span><span class="pln">transform</span><span class="pun">(</span><span class="pln">new OpenLayers</span><span class="pun">.</span><span class="pln">Projection</span><span class="pun">(</span><span class="str">&quot;EPSG:4326&quot;</span><span class="pun">),</span><span class="pln">new OpenLayers</span><span class="pun">.</span><span class="pln">Projection</span><span class="pun">(</span><span class="str">&quot;EPSG:900913&quot;</span><span class="pun">)));</span></code></pre>
<br><br><br><br>