-
Notifications
You must be signed in to change notification settings - Fork 283
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
Allow users to draw more than one shape #271
Comments
Hi @jeancochrane, I'm hoping you could help me! I've previously built an R Shiny app using Sorry I can't help with your actual question above! Many thanks |
No worries @simon-tarr! I can't quite remember what docs I was referencing when I opened this issue, but you can see the custom form I wound up creating here: https://github.com/fpdcc/document-search/blob/a466bfd63ee8aa2d53dc3103af0a2d51547ad0c2/docsearch/forms.py#L16-L42 And here's a link to the corresponding template for the form: https://github.com/fpdcc/document-search/blob/master/docsearch/templates/docsearch/licenses/form.html Hope this helps! |
You're a star, thank you! I'll take a good look at these...hopefully I can wrap my brain around it all! |
I'm using the
forms
anddraw
plugins to allow users to draw shapes for a model attribute and save them to the database. I'm storing the shapes asGeometryCollection
s, so I'd like to allow users to draw more than one shape on the map. However, it seems like theforms
anddraw
plugins are configured to only allow users to draw one shape on the map (i.e. if a user places a marker on the map, and then places another marker, the first marker will be deleted from the map). Is there any way to customize this behavior? If not, what part of the code would I need to modify to support adding multiple shapes to one map?The text was updated successfully, but these errors were encountered: