Re: [OpenLayers-Users] projection problem proj4js

2009-10-05 Thread Christopher Schmidt
On Mon, Oct 05, 2009 at 05:00:04PM -0700, karsten vennemann wrote: > Thanks, now I do not get an error any more with this code: > > var mapcenter = new OpenLayers.LonLat(-122.30785315739, 47.638080437239); > Proj4js.defs["EPSG:102003"] = "+proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=37.5 > +lon_0=-96

Re: [OpenLayers-Users] projection problem proj4js

2009-10-05 Thread Karsten
Nice this works now after using Roberts code suggestions: var mapcenter = new OpenLayers.Geometry.Point(-122.30785315739, 47.638080437239); Proj4js.defs["EPSG:102003"] = "+proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=37.5 +lon_0=-96 +x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs"; var source

Re: [OpenLayers-Users] projection problem proj4js

2009-10-05 Thread Robert Sanson
Hi Karsten This code works for me: var src = new OpenLayers.Projection('EPSG:4326'); var dest = new OpenLayers.Projection('EPSG:2193'); latitude = document.getElementById('lat').value; longitude = document.getElementById('llong').value; var markergeom = new OpenLayers.Geometry.Point(longitude,l

Re: [OpenLayers-Users] projection problem proj4js

2009-10-05 Thread karsten vennemann
Thanks, now I do not get an error any more with this code: var mapcenter = new OpenLayers.LonLat(-122.30785315739, 47.638080437239); Proj4js.defs["EPSG:102003"] = "+proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=37.5 +lon_0=-96 +x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs"; var source = new

Re: [OpenLayers-Users] projection problem proj4js

2009-10-05 Thread Andreas Hocevar
Hi, karsten vennemann wrote: > I'm trying to use proj4js in OL llike this: > > var mapcenter = new OpenLayers.LonLat(lon.text, lat.text); > Proj4js.defs["ESRI:102003"] = "+proj=aea +lat_1=29.5 +lat_2=45.5 > +lat_0=37.5 +lon_0=-96 +x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 > +units=m +no_defs"; R

Re: [OpenLayers-Users] projection problem proj4js

2009-10-02 Thread Karsten
In Firefox I also see that it is asking for a projection file http://ec2-72-44-43-178.compute-1.amazonaws.com/openlayers/proj4js/lib/defs/EPSG102003.js whichit can't find. No dea why I did directly add the projection info for 102003... Karsten -- View this message in context: http://n2.nabble.c

[OpenLayers-Users] projection problem proj4js

2009-10-02 Thread karsten vennemann
Hi, I'm trying to use proj4js in OL llike this: var mapcenter = new OpenLayers.LonLat(lon.text, lat.text); Proj4js.defs["ESRI:102003"] = "+proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=37.5 +lon_0=-96 +x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs"; var source = new Proj4js.Proj("EPSG