markokas Posted June 26, 2022 Share Posted June 26, 2022 Hi all, How to change active map layer with code, using uniButton. Thank you for help. Br, Marko Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted June 27, 2022 Share Posted June 27, 2022 On 6/26/2022 at 5:23 AM, markokas said: Hi all, How to change active map layer with code, using uniButton. Thank you for help. Br, Marko Hello You can use the below code. UniSession.AddJS('$(".leaflet-control-layers-selector")[4].click()'); 1 Quote Link to comment Share on other sites More sharing options...
markokas Posted June 27, 2022 Author Share Posted June 27, 2022 Thank you. It works Marko. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.