Skip to content

Instantly share code, notes, and snippets.

@marxian
Created August 1, 2011 15:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marxian/1118357 to your computer and use it in GitHub Desktop.
Save marxian/1118357 to your computer and use it in GitHub Desktop.
GeoJSON + OSM + OpenLayers
var geojson_format = new OpenLayers.Format.GeoJSON({
'internalProjection': new OpenLayers.Projection("EPSG:900913"),
'externalProjection': new OpenLayers.Projection("EPSG:4326")
});
@mdojobm
Copy link

mdojobm commented Jul 31, 2012

Two days I look for a solution of the problem: "OpenLayers.Layer.OSM, GeoJSON points always display at coords (0, 0)". This is the right solution, thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment