[OpenLayers-Users] Re projecting Google

Jon Britton man_kills_everything at hotmail.com
Tue Jan 22 07:26:46 EST 2008


Aha! Thanks. When you say "everything is translated for you" does that
include ouputs from Bounds objects?

I've got a custom control that allow the user to select an area of interest
(which will be used for something else later). Will the bounding box for
this selection be translated?

thanks,
Jon



Christopher Schmidt-4 wrote:
> 
> On Tue, Jan 22, 2008 at 02:11:50AM -0800, Jon Britton wrote:
>> 
>> Ok, I've imported the trunk version and the translation is working.
> 
> I'm assuming you mean you've got proj4js loaded in your page and you can
> translate things.
> 
>> How do I intercept the MousePosition control to translate the output into
>> BNG?
> 
> I'm assuming your map has 'projection': new
> OpenLayers.Projection("EPSG:27658") or whatever. If so, then just add to
> your map options:
> 
> 'displayProjection': new OpenLayers.Projection("EPSG:4326")
> 
> And everything will translate for you automagically.
> 
> Regards,
> -- 
> Christopher Schmidt
> MetaCarta
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: http://www.nabble.com/Reprojecting-Google-tp14709777p15017789.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list