I am wondering, is it possible to create a shape with PHP? I have read some articles that talk about doing it with borders, but that is not really what I am looking for.
I would like to specify the coordinates of an object in various shapes, like you can with an image map. Any ideas?What for?I have been racking my brain trying to figure out the best way to accomplish what I am trying to do. And it seemed if there were a possibility to do it with CSS, I would ask.
Basically, what I am trying to do is create a map where the different regions correspond to information stored in a database. So, you would have one area that is a certain type of terrain denoted by one color and another area by another color. The idea is to be able to control the look of the map through the database.
Thought about using Flash, but I am not good enough with Flash. Tried using a standard Imagemap hoping you could define background colors with CSS, but that does not seem possible. So, if there were a way to create an area with specific characteristics, I would like to know how. I am thinking what I want to do might not be possible.PHP might be able to do it with the image functions (<!-- m --><a class="postlink" href="http://www.php.net/manual/en/ref.image.php">http://www.php.net/manual/en/ref.image.php</a><!-- m -->) if you have the GD library available. (I've not worked with it, so no idea how easy/difficult it might be.)Does this (<!-- m --><a class="postlink" href="http://www.tantek.com/map.html">http://www.tantek.com/map.html</a><!-- m -->) come close to your requirement?WOW!! Thank-you both. I need to do some more exploring, but these atleast give me a good lead on how to go!
I need to look at that CSS a bit closely to see how that is working.
Also, I looked through the PHP.net listing of Image functions, and there seems to be some in there that might do exactly what I was looking for.....
And I thought I had to resort to flash....
Thanks Again.
I would like to specify the coordinates of an object in various shapes, like you can with an image map. Any ideas?What for?I have been racking my brain trying to figure out the best way to accomplish what I am trying to do. And it seemed if there were a possibility to do it with CSS, I would ask.
Basically, what I am trying to do is create a map where the different regions correspond to information stored in a database. So, you would have one area that is a certain type of terrain denoted by one color and another area by another color. The idea is to be able to control the look of the map through the database.
Thought about using Flash, but I am not good enough with Flash. Tried using a standard Imagemap hoping you could define background colors with CSS, but that does not seem possible. So, if there were a way to create an area with specific characteristics, I would like to know how. I am thinking what I want to do might not be possible.PHP might be able to do it with the image functions (<!-- m --><a class="postlink" href="http://www.php.net/manual/en/ref.image.php">http://www.php.net/manual/en/ref.image.php</a><!-- m -->) if you have the GD library available. (I've not worked with it, so no idea how easy/difficult it might be.)Does this (<!-- m --><a class="postlink" href="http://www.tantek.com/map.html">http://www.tantek.com/map.html</a><!-- m -->) come close to your requirement?WOW!! Thank-you both. I need to do some more exploring, but these atleast give me a good lead on how to go!
I need to look at that CSS a bit closely to see how that is working.
Also, I looked through the PHP.net listing of Image functions, and there seems to be some in there that might do exactly what I was looking for.....
And I thought I had to resort to flash....
Thanks Again.