I have been playing around with the Google Maps API and realized I could pull down map images with AGKs HTTP commands.
So I mixed that with Baxslashes awesome Pinch and Zoom
tutorial and made an app that displays a map - see attached.
My question:
Looking over the Google Maps
documention, I see its possible to derive a pixel coordinate from a world coordinate. That would be useful to display markers, icons etc at real locations. However I'm clearly missing a core concept because my attempts at the conversion
pixelCoordinate = worldCoordinate * 2zoomLevel
using
function Pow( base as float, exp as float )
result# = base ^ exp
endfunction result#
results in nonsense numbers.
Does anyone know how to convert them?