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