Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Right Click by Marker drawing deletes the hint Marker #405

Closed
Falke-Design opened this issue Feb 17, 2019 · 1 comment
Closed

Right Click by Marker drawing deletes the hint Marker #405

Falke-Design opened this issue Feb 17, 2019 · 1 comment

Comments

@Falke-Design
Copy link
Collaborator

On right click by Marker drawing, the hint Marker disappears. In the fiddle I use a custom Icon to demonstrate it better, but it also happens with the default Marker if the cursor is fast enough to catch the marker.

https://jsfiddle.net/falkedesign/7qg05xr9/

I think the Code in Draw.Marker.enable() should be:

 this._map.eachLayer((layer) => {
            if (layer instanceof L.Marker && layer.pm && !layer._pmTempLayer) {
                layer.pm.enable();
            }
});

and not:

this._map.eachLayer((layer) => {
            if (layer instanceof L.Marker && layer.pm) {
                layer.pm.enable();
            }
});
`
@codeofsumit
Copy link
Contributor

Thanks for reporting. Will be fixed in the next release 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants