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?
Creating a graphical map with dynamic population?
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
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.
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.
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
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