Skip to content

Commit

Permalink
Fix cutPolygon typo. Fixes 620 (patch)
Browse files Browse the repository at this point in the history
Typo drag -> removal
  • Loading branch information
codeofsumit committed Jul 4, 2020
2 parents 095aab9 + 4d09e43 commit 8880b1f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -409,18 +409,18 @@ The event has an object with an enabled boolean and a reference to the map.
### Removal Mode

```js
// toggle drag mode like this:
// toggle removal mode like this:
map.pm.toggleGlobalRemovalMode();
```

The following methods are available on `map.pm`:

| Method | Returns | Description |
| :------------------------- | :-------- | :----------------------------------------------------------------------- |
| enableGlobalRemovalMode() | - | Enables global drag mode. |
| disableGlobalRemovalMode() | - | Disables global drag mode. |
| enableGlobalRemovalMode() | - | Enables global removal mode. |
| disableGlobalRemovalMode() | - | Disables global removal mode. |
| toggleGlobalRemovalMode() | - | Toggles global removal mode. |
| globalRemovalModeEnabled() | `Boolean` | Returns `true` if global removal mode is enabled. `false` when disabled. |
| globalRemovalModeEnabled() | `Boolean` | Returns `true` if global removal mode is enabled. `false` when disabled. |

The following events are available on a layer instance:

Expand Down
6 changes: 3 additions & 3 deletions src/js/Toolbar/L.PM.Toolbar.js
Expand Up @@ -406,7 +406,7 @@ const Toolbar = L.Class.extend({
"CircleMarker": "drawCircleMarker",
"Edit": "editMode",
"Drag": "dragMode",
"Cut": "cutPoylgon",
"Cut": "cutPolygon",
"Removal": "removalMode"
};

Expand Down Expand Up @@ -498,7 +498,7 @@ const Toolbar = L.Class.extend({
"CircleMarker": "drawCircleMarker",
"Edit": "editMode",
"Drag": "dragMode",
"Cut": "cutPoylgon",
"Cut": "cutPolygon",
"Removal": "removalMode"
};

Expand Down Expand Up @@ -574,7 +574,7 @@ const Toolbar = L.Class.extend({
"CircleMarker": "drawCircleMarker",
"Edit": "editMode",
"Drag": "dragMode",
"Cut": "cutPoylgon",
"Cut": "cutPolygon",
"Removal": "removalMode"
};

Expand Down

0 comments on commit 8880b1f

Please sign in to comment.