Open hejustbrave opened 2 years ago
text-align: center;
您好,您的邮件本人已经收到,谢谢!
i had the same problem, make sure map dimensions are updated using map.invalidateSize() before enable sideBySide control.
您好,您的邮件本人已经收到,谢谢!
I have the same problem,please tell me the solution about it ,thank you!!!!
您好,您的邮件本人已经收到,谢谢!
I have the same problem,please tell me the solution about it ,thank you!!!!
After page load, make sure to invoke map.invalidateSize() before enabling sideBySide control.
I have the same problem,please tell me the solution about it ,thank you!!!!
After page load, make sure to invoke map.invalidateSize() before enabling sideBySide control.
I tried, but it didn't work. I control the opening and closing of the roller shutter function through a button. But adding the above code is completely useless
We invalidate only after page load... Not when the tool is activated.
https://user-images.githubusercontent.com/3015977/231895100-dff76e18-9a26-498b-b2cc-ff4d1e5c089f.mp4
We invalidate only after page load... Not when the tool is activated.
Sorry,I still don't understand when I should call this method, meaning after initializing the map object? Or before loading each layer?I tried both separately, but both failed
now coding with vue,the control seems work normal,my code as the layers added before setting to the control
I solved the issue by overwriting the default CSS as below,
.leaflet-sbs-divider {
margin-left: 10px !important;
}
您好,您的邮件本人已经收到,谢谢!
and my code is: