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

Changed the reference of the Utils functions to the global one #773

Merged
merged 1 commit into from
Feb 6, 2021

Conversation

Falke-Design
Copy link
Collaborator

Now it is possible for the user to overwrite Utils functions. For example for sub libraries.

var oldFindLayers = L.PM.Utils.findLayers;
L.PM.Utils.findLayers = function(map){
    var layers = oldFindLayers(map);
    console.log(layers);
    return layers;
}

@codeofsumit codeofsumit merged commit f537519 into geoman-io:develop Feb 6, 2021
@Falke-Design Falke-Design deleted the global_utils branch March 31, 2021 11:36
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.

None yet

2 participants