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

Mismatch between docs and the code in the constructor #9

Open
NickStallman opened this issue Oct 9, 2018 · 0 comments
Open

Mismatch between docs and the code in the constructor #9

NickStallman opened this issue Oct 9, 2018 · 0 comments

Comments

@NickStallman
Copy link

The docs say this is the constructor format:
L.layerConfig(object or url to json file, map);

However it looks like the first parameter gets set to the internal 'map' variable, and the second parameter is discarded.

The working syntax is used in the example, where only the map is passed to the constructor, and the object/url is sent to .parse() afterwards.

This is confusing and it seems unintended.

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

1 participant