Page 1 of 1

PDF Grid/Mapping Question

Posted: Wed Sep 27, 2006 8:55 pm
by vnwebworld
Hey all,

I basically want to make a grid system of a map image. Like columns and rows, so City XX is at A5 of B9.

The only solution I can think of is to take an image of a map, turn it into a PDF file and then use the PDFLib with PHP to make grid lines on the PDF file. Then using the PDFLib coordinate system, I can pick out locations on the map. Bad idea?

I've seen the grid system done before on a PDF but couldn't find any tutorials on it, can anyone point the right direction?

So basically in the end, I want to be able to retrieve city information like Shanghai, City - Grid D-9. Then it will open up the PDF for the user to see a map and have a STAR located at D-9

Any help is appreciated

Thanks,
Lester

Posted: Thu Sep 28, 2006 3:23 am
by onion2k
I'd use an image of the map, GD2 to draw grid lines on it, and an html image map to pick locations. Then GD2 to draw a star whereever a star is meant to be draw.