.ol-control.ol-layerswitcher { position: absolute; right: 0.5em; text-align: left; top: 3em; } .ol-control.ol-layerswitcher .panel { background-color: #fff; border-radius: 0 0 2px 2px; clear: both; display: block; /* display:block to show panel on over */ } .ol-layerswitcher .panel { list-style: none; padding: 0.5em 0.5em 0; margin:0; overflow: hidden; font-family: Tahoma,Geneva,sans-serif; font-size:0.9em; } .ol-layerswitcher .panel ul { list-style: none; padding: 0 0 0 20px; overflow: hidden; clear: both; } /** Custumize checkbox */ .ol-layerswitcher input[type="radio"], .ol-layerswitcher input[type="checkbox"] { display:none; } .ol-layerswitcher .panel li { transition: transform 0.2s linear; -weblit-transition: -webkit-transform 0.2s linear; clear: both; } .ol-layerswitcher .panel li.drag { opacity: 0.5; transform:scale(0.8); -webkit-transform:scale(0); } .ol-layerswitcher .panel li.dropover { background: rgba(51, 102, 153, 0.5); } .ol-layerswitcher .panel li label { display: inline-block; height: 1.4em; max-width: 12em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 0.2em 0 1.7em; position: relative; } .ol-layerswitcher [type="radio"] + label:before, .ol-layerswitcher [type="checkbox"] + label:before, .ol-layerswitcher [type="radio"]:checked + label:after, .ol-layerswitcher [type="checkbox"]:checked + label:after { content: ''; position: absolute; left: 0.1em; top: 0.1em; width: 1.2em; height: 1.2em; border: 2px solid #369; background: #fff; box-sizing:border-box; } .ol-layerswitcher [type="radio"] + label:before, .ol-layerswitcher [type="radio"] + label:after { border-radius: 50%; } .ol-layerswitcher [type="radio"]:checked + label:after { background: #369 none repeat scroll 0 0; margin: 0.3em; width: 0.6em; height: 0.6em; } .ol-layerswitcher [type="checkbox"]:checked + label:after { border: 0.6em solid #369; border-color: transparent #369; background: transparent; } .ol-layerswitcher .panel li.ol-layer-hidden { opacity: 0.6; } .ol-layerswitcher.ol-collapsed .panel { display:none; } .ol-layerswitcher.ol-forceopen .panel { display:block; } .ol-layerswitcher button { background-color: white; background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC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Y5vZfiiAC0UoTGOrm9PZLuRl8X+Dq1HQtoFbJZbv61i+Poblh/97TC7n0neCcK0ETNUrz1/xPHf+DNAW9Ac6t8O8WH3Vp98f5lCaYKAOFZMLyHL4Y0fe319idMNgMMp+zWVSybUed/+/h7I4wRAG1W6XDy4XmjR9HnzvDRZXUAYDFOhC1S/Hh+fIXxen+eO+AKqbs+wAo30zDTDvDxKoJN88sjUzDFAvBzEUGFsnADoIvAJzoh2BZ8sner+Ke/vwECuQAAAABJRU5ErkJggg=="); background-position: center; background-repeat: no-repeat; float: right; height: 38px; width: 38px; } .ol-layerswitcher-buttons { display:block; float: right; text-align:right; } .ol-layerswitcher-buttons > div { display: inline-block; position: relative; cursor: pointer; height:1em; width:1em; margin:2px; } /* line break */ .ol-layerswitcher .ol-separator { display:block; width:0; height:0; padding:0; margin:0; } .ol-layerswitcher .layerup, .ol-layerswitcher .layerdown { margin: 0 2px 2px; } .ol-layerswitcher .layerdown:before, .ol-layerswitcher .layerup:before { border-color: #369 transparent; border-style: solid; border-width: 0 0.5em 0.5em; content: ""; height: 0; position: absolute; top: 30%; left: 0; width: 0; } .ol-layerswitcher .layerdown:before { border-width: 0.5em 0.5em 0; } .ol-layerswitcher .layerInfo { background: #369; border-radius: 100%; } .ol-layerswitcher .layerInfo:before { color: #fff; content: "i"; display: block; font-size: 0.8em; font-weight: bold; text-align: center; width: 1.25em; position:absolute; left: 0; top: 0; } .ol-layerswitcher .layerTrash { background: #369; } .ol-layerswitcher .layerTrash:before { color: #fff; content: "\00d7"; font-size:1em; top: 50%; left: 0; right: 0; text-align: center; line-height: 1em; margin: -0.5em 0; position: absolute; } .ol-layerswitcher .layerExtent { background: #369; } .ol-layerswitcher .layerExtent:before { border-right: 1px solid #fff; border-bottom: 1px solid #fff; content: ""; display: block; position: absolute; left: 6px; right: 2px; top: 6px; bottom: 3px; } .ol-layerswitcher .layerExtent:after { border-left: 1px solid #fff; border-top: 1px solid #fff; content: ""; display: block; position: absolute; bottom: 6px; left: 2px; right: 6px; top: 3px; } .ol-layerswitcher .expend-layers, .ol-layerswitcher .collapse-layers { margin: 0 2px; } .ol-layerswitcher .expend-layers:before, .ol-layerswitcher .collapse-layers:before { content:""; position:absolute; top:50%; left:0; margin-top:-2px; height:4px; width:100%; background:#369; } .ol-layerswitcher .expend-layers:after { content:""; position:absolute; left:50%; top:0; margin-left:-2px; width:4px; height:100%; background:#369; } /* .ol-layerswitcher .collapse-layers:before { content:""; position:absolute; border:0.5em solid #369; border-color: #369 transparent transparent; margin-top:0.25em; } .ol-layerswitcher .expend-layers:before { content:""; position:absolute; border:0.5em solid #369; border-color: transparent transparent transparent #369 ; margin-left:0.25em; } */ .ol-layerswitcher .layerswitcher-opacity { border: 1px solid #369; height: 12px; width: 117px; font-size:0; margin:0 7px 7px 7px; box-sizing: border-box; } .ol-layerswitcher .layerswitcher-opacity div { box-sizing: border-box; cursor: pointer; display: inline-block; height: 100%; width: 9.09%; position:relative; } .ol-layerswitcher .layerswitcher-opacity-0_5 div { width: 4.76%; } .ol-layerswitcher .layerswitcher-opacity div div { background: #369; display: block; height: 100%; width: 100%; } .ol-layerswitcher .layerswitcher-progress { display:block; margin:-4px 2em 2px 1.3em; } .ol-layerswitcher .layerswitcher-progress div { background-color: #369; height:2px; display:block; width:0; } .ol-layerswitcher .layerswitcher-opacity div:hover:before, .ol-layerswitcher .layerswitcher-opacity div.select:before { content:""; position:absolute; top:-2px; left:-2px; bottom:-2px; right:-2px; border:2px solid #d33; z-index:1; }