views:

681

answers:

2

Has anyone any reources for learning how to implement SVG with php/mysql (and possibly with php-gtk)? I am thinking of making a top-down garden designer, with drag and drop predefined elements (such as trees/bushes) and definable areas of planting (circles/squares). Gardeners could then track over time how well planting did in a certain area.

I don´t really want to get into flash...

+1  A: 

I'm looking for a similar solution, and the two relevant questions here are Scripting SVG and Displaying vector graphics in a browser.

Neither of them give much hope, though, as each browser has different vector capabilities. Dojox.gfx appears to be a cross browser javascript graphics library which may do everything you need, but it won't necesarily do it in SVG. Canvas is gaining a lot of support and interest.

Adam Davis
+1  A: 

Here's what I found I guess in some other question, not sure though.

raphael

It's a javascript library for working with svg.
There's an example, but try using browsershots to see if you are actually happy with the support of browsers (IE for example does not have native svg support).

Me personally have decided not to use svg, rather implement images + js solution as I don't think svg is supported enough nowadays.

michal kralik