I'm using a getCentroid to get a pix location. Trouble is I want the view port pix. I was able to take the getCentroid .x and y to latlon but when going to viewport pix its always -106.2~. So I tried to get just a pix back and its also -106.2~. Then I tried to get the pix form the layer instead of the map and its also -106.2~.
Example: var test = polyMakerPoints[0].geometry.getCentroid() test = PixelToLatLong(test.x,test.y); var test1 =__map.getViewPortPxFromLonLat( test ); alert( "x: "+ test1.x); I simply need the x,y from the getCentroid relative to view port, how? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/getting-a-pix-point-from-a-latlon-tp6470150p6470150.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
