Using ol3cesium I have a button, call a javascript and switch fron 2d to 3d using
var ol3d = new olcs.OLCesium({map: map}); // map is the ol.Map instance
ol3d.setEnabled(true);
then, i have 2 questions:
1) how to create a similar javascript for switch 2d/3d using leaflet?
2) using openlayers3 and not leaflet, can I trap the name of current displayed map? I need to display some layers when I am in 2d mode and after the click, when the current map id 3d, i need to put off some layers and on different layers then i have not displayed in the 2d map (i need some layers only in 2d mode and some layers only in 3d mode)
Thanks!