On Nov 16, 2010, at 10:14 PM, ext Roald de Wit wrote: > On 17/11/10 12:40, [email protected] wrote: >> >> What exactly do you expect to happen when you provide completely >> unreasonable values to >> reproject? :p Mercator projections go to infinity when you go to +90/-90, so >> there is no >> actual reasonable thing to return in this case; the current behavior is >> certainly not >> ideal, but the other option seems to me to be "throw an exception". >> >> (This is why the mercator max bounds are at ~+/-85 degrees in the spherical >> mercator >> tile bounds.) > > Would it be an option to have OL automagically limit the bounds to > something like +89.999 and -89.999 (and provide a warning in the > console)? Or would this create more problems than solving them?
I don't have specific thoughts on that particular solution, but I think anything like that should probably be pushed to the proj4js level, not done at the OL level. -- Chris_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
