javascript - Better Approach to User-Drawn Canvas -


in web app, i'm allowing users draw polygons on apartment map (essentially outlining units). map uploaded user , drawn canvas. user clicks draw shapes on canvas, however, need ability fill shapes @ later time, redraw them svg. essentially, have canvas overlaid svg images.

the functionality need works fine, however, feels gross. coordinates generated canvas, yet stored in db , redrawn svg. there better way this? whole setup feels dirty me.

you can draw same shapes on canvas. can keep coordinates in db, save image uploaded user, , later draw on canvas again. can evan export base64 canvas (shapes user have drawn along image) , save in end. hope helps.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -