Skip to content

Commit

Permalink
centerMarker is not draggable anymore during Circle Draw. Fixes #230
Browse files Browse the repository at this point in the history
…(patch)
  • Loading branch information
codeofsumit committed Sep 29, 2017
1 parent d22dcd4 commit fa82ff0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
34 changes: 17 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/js/Draw/L.PM.Draw.Circle.js
Expand Up @@ -29,7 +29,7 @@ Draw.Circle = Draw.extend({
// this is the marker in the center of the circle
this._centerMarker = L.marker([0, 0], {
icon: L.divIcon({ className: 'marker-icon' }),
draggable: true,
draggable: false,
zIndexOffset: 100,
});
this._centerMarker._pmTempLayer = true;
Expand Down

0 comments on commit fa82ff0

Please sign in to comment.