Hi,<br><br>I am trying to load a GeoJSON file in a layer on top of a google map (OpenLayers 2.6).<br><br>I used for now:<br>var colfeatures = new OpenLayers.Layer.GML(&quot;specimens&quot;, &quot;geojson.php&quot;, {format: OpenLayers.Format.GeoJSON});<br>
map.addLayer(colfeatures);<br><br>Entities show up on the map somewhere close to 0,0. For other vector entities (coordinates) I push through code this is solved with <br><br>var g = new OpenLayers.Projection(&quot;EPSG:4326&quot;);<br>
var p = new OpenLayers.Projection(&quot;EPSG:900913&quot;);<br><br>and .tranform(g,p) <br><br>but I do not know how to apply this directly on features read from GeoJSON.<br>Is there a way to loop through all entities in colfeatures and apply transform(g.p) or can somebody suggest me a better approach?<br>
<br>All the best,<br>Adorian<br><br><a href="http://mybiosis.info">http://mybiosis.info</a><br>