That would be relatively simple.
From the web aspect ...
You can use something like an HTML5 canvas.
Then you can use JavaScript and do something like this:
document.onmousemove = function(event){ xcoor = event.pageX; ycoor = event.pageY; }
to capture mouse movements whenever you move the mouse.
You can also use the code to put a circle or square (a square in this case, but you can easily use a circle) as follows:
document.onmousemove = function(event){ xcoor = event.pageX; ycoor = event.pageY; mapcan.fillStyle = "#000000"; mapcan.fillRect(-1*(11617845.3461), -1*(8093417.14653), 10, 10); }
Now you can use PHP or some other language to insert the roots into the database.
Trying to do live editing with multiple users is at best more difficult. Instead, I suggest sticking to a lively view.
Although this is a resource intensive process, it will work.
Hope this helps if you do this to build it!
source share