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"><<a href="mailto:zac.spitzer@gmail.com">zac.spitzer@gmail.com</a>></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>
<<a href="mailto:stuparvladimir@gmail.com">stuparvladimir@gmail.com</a>> wrote:<br>
> Hi everyone!<br>
><br>
> I am building a GIS app in geoDjango with OpenLayers and using data from<br>
> PostGIS in projection EPSG:3908. The base layer is OSM. When I add vector<br>
> data I got it rendered near Brazil instead of Bosnia. I tried everything but<br>
> just can't get the solution.<br>
><br>
> Please can anyone help?<br>
><br>
> Here is the code:<br>
><br>
> var map, osm, kml;<br>
><br>
> function init(){<br>
><br>
> map = new OpenLayers.Map('map');<br>
><br>
><br>
> map.addControl(new OpenLayers.Control.LayerSwitcher());<br>
><br>
><br>
> var osm = new OpenLayers.Layer.OSM(<br>
><br>
> "OSM");<br>
><br>
> kml = new OpenLayers.Layer.GML("KML", upit,<br>
><br>
> {format: OpenLayers.Format.KML,<br>
><br>
> projection: new OpenLayers.Projection("EPSG:3908")});<br>
><br>
><br>
> map.addLayers([osm, kml]);<br>
><br>
><br>
> map.zoomToExtent(<br>
> new OpenLayers.Bounds(15.774414, 42.6, 19.662109,<br>
> 45.2).transform(new OpenLayers.Projection("EPSG:4326"),new<br>
> OpenLayers.Projection("EPSG:900913")));<br>
><br>
><br>
><br>
><br>
><br>
><br>
</div></div>> _______________________________________________<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>
><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 & 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>