How to Make an Interactive Map from a 2D CAD Drawing?

0
0
Asked By SkyDancer29 On

I'm looking to transform a 2D CAD drawing of a facility into an interactive map for a website. The idea is that when a user clicks on different parts of the map (like specific buildings), it should either redirect to a detailed view or change the display to show more details. I want to incorporate hover effects and interactive mouse actions as well, but I'm not sure how to start this type of project, especially since there are various shapes and curves involved.

2 Answers

Answered By PixelWizard87 On

The best approach is to export your CAD drawing as an SVG file. SVG files maintain all the shapes and curves in a clean and editable format. After that, you can embed the SVG on your website and use JavaScript or libraries like Snap.svg to add the hover and click effects you want. For features like zooming and panning, tools like SVG Pan Zoom are really handy. Just start with simple interactions, test them out, and then build on that!

Answered By TechieNerd42 On

Make sure you check the format of your CAD file first. If you can get it into SVG format, that would simplify a lot of things. SVG is perfect for web projects since it's flexible and can be manipulated using CSS. There are tools to convert DWG files to SVG, but just keep in mind that the quality may vary based on the tool you use. It's definitely worth checking out for your project!

SkyDancer29 -

I'll look into that. I hope the conversion tools give good results this time! Last time I tried converting images to SVG, the results were pretty poor.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.