I am building a facility management app. I have been given a .DWG file of the floor plan that I want to show on the app and make the desks and chairs clickable so that employees of that facility can book it. Much like how you would book a seat in a plane by clicking on the seat in the image.
I converted the file to an SVG. Initially the file size of the SVG after conversion was over a 100 Mb. So I cleared the layers in the DWG, converted it to an SVG and after compression, got the SVG size to 1.1MB. This hampered the quality of the SVG severely. On top of it, the app was still unable to open the SVG smoothly and kept crashing at times. This makes me think that converting to SVG is not the best approach. Any advice on how this can be done?
pathelement per shape. But you probably need many tries to find the best settings. You should also try to pre-process/cleanup the data in an graphic editor like inkscape to detect duplicate/excessive elements.