[OpenLayers-Users] Re: Transform/projection Function Error
Rossko
rossko at culzean.clara.co.uk
Sat Oct 29 13:01:49 EDT 2011
Have a careful look at your brackets
return new OpenLayers.LonLat((_lon_in ,_lat_in).transform( new
OpenLayers.Projection("EPSG:4326"), map.getProjectionObject()));
This will try to get something from (x,y).transform(blah)
I'm not honestly sure javascript makes of an object (x,y) but I bet it
doesn't have a .transform method.
Presuming you're trying to use LonLat .transform method, try something like
return new OpenLayers.LonLat(_lon_in ,_lat_in).transform( new
OpenLayers.Projection("EPSG:4326"), map.getProjectionObject());
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/WMSGetFeatureInfo-popups-tp6897072p6943818.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list