We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Any idea how to implement setLeftLayer functionality
The text was updated successfully, but these errors were encountered:
@emadbaqeri, I found that this worked for me...
var map = L.map('map').setView([51.505, -0.09], 13); var myLayer1 = L.tileLayer(...).addTo(map); var myLayer2 = L.tileLayer(...).addTo(map); var sideBySide = L.control.sideBySide([], []).addTo(map); sideBySide.setLeftLayers([myLayer1]); sideBySide.setRightLayers([myLayer2]);
Then simply update with the following:
var myLayer3 = L.tileLayer(...).addTo(map) sideBySide.setLeftLayers([myLayer3]);
I actually remove the left layers before adding new ones, buy your situation might be different...
Sorry, something went wrong.
@nathanrooy Thank you friend. This is the best solution that I can implement
No branches or pull requests
Any idea how to implement setLeftLayer functionality
The text was updated successfully, but these errors were encountered: