Hallo Lars, danke für Deine Antwort.
Am 21.05.2012 18:18, schrieb Lars Lingner: > On 21.05.2012 17:32, Sebastian Klemm wrote: >> Wenn ich im JavaScript mittels map.setCenter() den Kartenausschnitt am >> Anfang festlegen will, lande ich statt in Deutschland im Atlantik am >> Äquator. Die Koordinaten scheinen als Pixel statt Länge/Breite in Grad >> interpretiert zu werden. >> Das ist der verwendete Code, inkl. Transformation der Koordinaten: >> >> var center = new OpenLayers.LonLat(10, 50).transform(new >> OpenLayers.Projection("EPSG:4326"), map.getProjectionObject()); > Was ist denn Deine andere Projektion? > Falls es nicht eine von EPSG:4326, CRS:84, > urn:ogc:def:crs:EPSG:6.6:4326, EPSG:900913, EPSG:3857, EPSG:102113 and > EPSG:102100 ist, musst Du die entsprechende Projektionsdatei noch einbinden. Das map-Objekt hat diese beiden: projection: new OpenLayers.Projection("EPSG:900913"), displayProjection: new OpenLayers.Projection("EPSG:4326"), das scheint also nicht das Problem zu sein. Sebastian _______________________________________________ Talk-de mailing list Talk-de@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-de