5

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...

Chris
  • 6,761
  • 6
  • 52
  • 67

2 Answers2

2

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

Community
  • 1
  • 1
Adam Davis
  • 91,931
  • 60
  • 264
  • 330
  • 1
    Just a note: a lot has happened with SVG in browsers since 2008 (which is when those questions were asked). – Erik Dahlström Jan 24 '11 at 07:45
  • @Erik - True, but I think that canvas has gotten more usable in a cross browser setting, so at this point Canvas is probably the way to go when one wants vector graphics/animation without flash. – Adam Davis Jan 24 '11 at 14:56
2

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.

mike
  • 5,047
  • 2
  • 26
  • 32