开发者

UX for letting user drag a Google map marker and enter form fields

开发者 https://www.devze.com 2023-02-16 13:55 出处:网络
I want to allow the user to specify the location of something by dragging a marker onto the map.An开发者_开发知识库d I also want to let them enter some information about that spot.

I want to allow the user to specify the location of something by dragging a marker onto the map. An开发者_开发知识库d I also want to let them enter some information about that spot.

The problem is that this makes a very complex form. Can this be done in one step? Or do I have to make them choose location first, and then in a second form take the form-field input?

How would you guys go about doing this? Are there any good tutorials for this sort of thing out there?

Thanks, Alex


What do you mean in one step?I implemented this by adding a floating form in the side of a map and adding two hidden(or not?) fields that populated with the coords of the draggable marker.I really don't see any other way except maybe if you embed the form in the info window of the draggable marker

Cheers

0

精彩评论

暂无评论...
验证码 换一张
取 消