Created
August 1, 2011 15:32
-
-
Save marxian/1118357 to your computer and use it in GitHub Desktop.
GeoJSON + OSM + OpenLayers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var geojson_format = new OpenLayers.Format.GeoJSON({ | |
'internalProjection': new OpenLayers.Projection("EPSG:900913"), | |
'externalProjection': new OpenLayers.Projection("EPSG:4326") | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.