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

Multiple vector types in admin (polygon, line, points) in 1 map #183

Open
Duke1734 opened this issue Feb 28, 2017 · 1 comment
Open

Multiple vector types in admin (polygon, line, points) in 1 map #183

Duke1734 opened this issue Feb 28, 2017 · 1 comment

Comments

@Duke1734
Copy link

Hi -
Thanks for the awesome code. Can you show how you get multiple different GEOS geometry fields into 1 admin map (polygon, line, points)?

This example only brings in the Point:

import floppyforms as forms

class GeoForm(forms.Form):
point = forms.gis.PointField()

I would like points, lines and polygons like the top of your map below the GeoDjango widgets title.

Cheers

@gregmuellegger
Copy link
Collaborator

There are a couple of widgets for geo data: http://django-floppyforms.readthedocs.io/en/latest/geodjango.html

If I remember correctly the MultiPolygonField will do the trick.

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

2 participants