« New demo: Resizable/Movable Ground Overlay | Main | New Perl Module: Calculate Google Tiles »

Relative Pixel Location Algorithm in Perl

We've added a new Perl module that calculates the relative pixel location on the "Google World" for the Google Maps API. This module will return a pixel coordinate when passed a latitude, longitude and zoom factor that can be used to correctly locate objects in an image used as a GGroundOverlay object.

This module is based on Ian Dee's excellent work to calculate tile names for custom tile layers. There are some differences, mostly in how the calculation is performed and rounding, but essentially, it is the same calculation found in Google's Javascript API code. An example has been added to demonstrate this routine in action: goverlay.htm

USNaviguide_Google_RelPix.pm - A Perl Module


This page contains a single entry from the blog posted on November 24, 2007 5:31 PM.

The previous post in this blog was New demo: Resizable/Movable Ground Overlay.

The next post in this blog is New Perl Module: Calculate Google Tiles.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.31