Page 1 of 1
Creating a graphical map with dynamic population?
Posted: Thu Mar 31, 2005 4:24 pm
by Serengeti
I envision a map of the USA divided into the 50 states. Each entry in our database has a state designated. I would like to create a map that will display the database information inside each state's border. Of course the smaller NE states would be out to the right.
Is this possible? How do I start something like this?
Posted: Thu Mar 31, 2005 4:33 pm
by feyd
this is the general idea:
gather positional information to create a rectangle to draw the text into. Use the text graphics functions to determine the size required for a particular state's data. If the size is too large, you need to draw a line to the nearest edge followed by the data for that rectangle area. It's not very simple unless you make a lot of assumptions and things.
Posted: Thu Mar 31, 2005 5:24 pm
by Serengeti
one key piece i forgot to mention...the total population is 287

so there will probably never be a 3 digit number in any state
but thanks for the info, i'll start researching the text graphics functions...i knew there was a specific part of php that dealt with this, just didn't know what it was called so I was lost on what to search for
