Scale to Pixel

Sep 26, 2009 at 11:35 AM

I need to be able to draw a 3x6 meter block on the map.   Given a zoom level, I would like to know how many pixels wide and tall this would be, so I can instantiate a rectangle to the correct dimensions on the screen. 

I'm sure it's all there, I just can seem to determine the math to get the numbers that I need. 



Oct 2, 2009 at 6:51 AM

What is the scenario Lucas? usually we draw a rectangle based on Latitude and Longitude of each corner.

We don't have an inbuilt function, the Mector project means as you change Latitude the scale changes, so at different Latitude 3x6m block on the map is different. Actually you could use the scalebar algorithm, it gives you a 1:scale ratio, but it is in distance, pixels should be easier.