openlayer 缩放滑块
<!DOCTYPE html><html>
<head>
<title>Zoom Sliders</title>
<link rel="stylesheet" href="https://openlayers.org/en/v5.1.3/css/ol.css" type="text/css">
<!-- The line below is only needed for old environments like Internet Explorer and Android 4.x -->
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList,URL"></script>
<style>
/**
* The zoomslider in the second map shall be placed between the zoom-in and
* zoom-out buttons.
*/
#map2 .ol-zoom .ol-zoom-out {
margin-top: 204px;
}
#map2 .ol-zoomslider {
background-color: transparent;
top: 2.3em;
}
#map2 .ol-touch .ol-zoom .ol-zoom-out {
margin-top: 212px;