Skip to content

Remove multiple marker selection behavior from the location editor #704

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. A user clicks on the location editor map (rather than drags the pin)
2.
3.

What is the expected output? What do you see instead?
Expect to see one pin where the user clicks. 
Instead we get two pins, a green pin where we clicked and a second red pin 
appears many miles from the clicked point (see attached example). A big problem 
for websites that allow users to place pins i.e. have implemented the 
location-editor map in a front end form.

Solution:
Move the if statement "if ( !selected_marker ) {"  in location-editor.js line 
991 up to encompass the preceding four lines of code (see attached).

Original issue reported on code.google.com by someoneg...@gmail.com on 28 Nov 2014 at 8:08

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions