Skip to content

Neighbornews add/edit form: Better feedback when clicking map #277

Description

@slinkp

Currently on the neighbornews add/edit form, when you click the map, it uses that point and discards anything in the address field. The server will reverse-geocode after you submit and populate the address, but the user can't tell that without submitting, so it's confusing - hard to know what you're doing. The address field does update the map, but only when you click the "Map it" button.

Fixcity had a pretty slick UI for this, updating automatically as you left the address field; reverse-geocoding via ajax and updating address if you clicked the map; and avoiding things getting out of whack if you submitted the form before ajax requests completed, ensuring that whichever one you touched last was used.
We could re-use that code. But we don't have an exposed API for reverse-geocoding, would need that first.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions