OSMGeoAdmin can only edit polygons, cannot create new ones

28 views
Skip to first unread message

eric conner

unread,
Jan 6, 2017, 7:50:50 PM1/6/17
to Django users

Hello Django Users!

I am trying to use OSMGeoAdmin to create an editable PolygonField backed by MySQL.

This works great for existing polygons, but it does not seem to be possible to create new polygons using the admin.

Here's a gif of me successfully modifying an existing Polygon:
as you can see I select the first tool and am able to choose and modify points on the polygon.

Now, if I try to create a new Polygon,
when I select the first tool I cannot add points to the map.  When I select the second tool I am able to create a blue selection, but this blue selection does not appear to be a polygon, just some kind of selection interface (it does not save after clicking save).

Am I using the admin correctly?  I've searched far and wide for docs on how to make this work, but have not come up with anything.

Thanks for any help!
-Eric

Eric Conner

unread,
Jan 6, 2017, 8:12:31 PM1/6/17
to django...@googlegroups.com
Ah, well I feel dumb.  I figured out how to do it.  In the second example, it is correct to use the blue drawing tool.  You just have to hold 'Shift' when clicking the last point to actually get the polygon to snap onto the page.

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/eD7iq8Kc23o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a8f75a5c-c597-479f-9cb8-2af7b187bc1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages