[OpenLayers-Users] Re: getting a pix point from a latlon?

Stephen Woodbridge woodbri at swoodbridge.com
Mon Jun 13 10:40:17 EDT 2011


On 6/13/2011 10:15 AM, ulao wrote:
> Wow now I see the centoid is not a pix its a lat lon in a pix? So, x is lat,
> and y is lon. Although this is an interesting discovery, I still can not get
> it to view port pix. I always get a pix related to the 0,0 of the map. So x
> is like 503317 at my current view. How can I get the view port x?  I assumed
> getViewPortPxFromLonLat would do that but it gives me the same as getting
> the normal pix.

Typically, x=longitude and y=latitude, if you have these reversed the 
that probably explains your problem.

-Steve


More information about the Users mailing list