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

setLeftLayers with >1 layers #38

Open
biennui1998mu opened this issue Jun 8, 2021 · 0 comments
Open

setLeftLayers with >1 layers #38

biennui1998mu opened this issue Jun 8, 2021 · 0 comments

Comments

@biennui1998mu
Copy link

I already read and follow code like below:
var myLayer1 = L.tileLayer(...).addTo(map);
var myLayer2 = L.tileLayer(...).addTo(map);
var sideBySide = L.control.sideBySide([myLayer1], [myLayer2]).addTo(map);

So, How can I compare many layer in leftLayer like:
var myLayer1 = L.tileLayer(...).addTo(map);
var myLayer2 = L.tileLayer(...).addTo(map);
var myLayer3 = L.tileLayer(...).addTo(map);
var myLayer4 = L.tileLayer(...).addTo(map);
var sideBySide = L.control.sideBySide([myLayer1, myLayer2, myLayer3], [myLayer4]).addTo(map);

Can I compare 3 layers in left with 1 layer in right at the same time ?

@biennui1998mu biennui1998mu changed the title setLayers for >1 layers setLeftLayers for >1 layers Jun 8, 2021
@biennui1998mu biennui1998mu changed the title setLeftLayers for >1 layers setLeftLayers with >1 layers Jun 8, 2021
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