Skip to content

Add function to get all Geoman layers #625

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

Merged
merged 4 commits into from
Jul 17, 2020

Conversation

Falke-Design
Copy link
Collaborator

Add function to get all Geoman layers map.pm.getPMLayers()

Mentioned: #619

Copy link
Contributor

@codeofsumit codeofsumit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great addition 👏

README.md Outdated
@@ -205,6 +205,7 @@ The following methods are available on `map.pm`:
| setPathOptions(`options`) | - | Customize the style of the drawn layer. |
| setGlobalOptions(`options`) | - | Set drawing options. |
| getGlobalOptions() | `Object` | Returns the global options. |
| getPMLayers() | `Array` | Returns all Geoman layers on the map. |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's call this getGeomanLayers

Copy link
Contributor

@codeofsumit codeofsumit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@codeofsumit codeofsumit merged commit c66bd56 into geoman-io:develop Jul 17, 2020
@Falke-Design Falke-Design deleted the pm_layers branch November 11, 2020 20:41
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

Successfully merging this pull request may close these issues.

2 participants