Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forbidden areas #36

Open
perliedman opened this issue Jan 6, 2025 · 0 comments
Open

Forbidden areas #36

perliedman opened this issue Jan 6, 2025 · 0 comments

Comments

@perliedman
Copy link
Owner

perliedman commented Jan 6, 2025

It should be possible to add forbidden areas as objects.

Drawing them mostly work as white-out areas, but styling needs to be different. We can probably use the same technique as we do in SVG (canvas seem to support SVG fills), but we need to make sure scaling is done correctly.

Also, we need to add the same for map print.

@wlfrdssn seems to have done some work in this area but was unable to complete it.

(An alternative, that is currently hard to implement, is to add forbidden areas as new objects to the OCAD map file in memory, and let the OCAD drawing logic handle forbidden areas. This could give a lot of potentially interesting functionality down the road, as draw white out areas between OCAD layers. It's not really possible to do without some major work in ocad2geojson, like being able to construct symbols and objects without an existing map file.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant