[x] Add new Leaflet Draw controls on right side of map
[x] Contextually adds circleMarker (label centroid and revGeo centroid), polygon (default geom), and rectangle (label bbox) options if those don't yet exist
[x] Prompt for which centroid geoms to add when adding a circlemarker
[x] Add ability to reset the edited geometries
[x] Draw new geoms using right colour
[ ] Not fully wired up to create, edit, delete WOF geometries (it's unlinked now) in Leaflet Draw layer group
[ ] Not fully wired up to take those layer group edits and update the WOF record with them
[ ] v1 probably won't allow editing polygon geoms that aren't mapzen / wof sourced? Otherwise have to deal with alt geoms, oh my!?
[x] Add new Geometries section at very top near map
[x] Checked is true for following if that type of geom already exists (as it can be hard to see on the map). Disabled (not check or uncheckable) for now – maybe in future it could delete or add that geom type?
[x] Default geom (geometry) with source and area
[x] Alternate geoms (geometry) and count of sources
Changes:
create, edit,deleteWOF geometries (it's unlinked now) in Leaflet Draw layer groupGeometries
section at very top near mapCommon properties
sectionTesting locations:
85922583
- Polygon, has label bbox and centroid, no revGeo centroid, multiple alternate geometries85977539
- Polygon, no label bbox, has label centroid, has revGeo centroid, multiple alternate geometries1327293371
- Point, no extras at all. Now zooms out to the label bbox on init map / page load, no alternate geometriesScreenshot: