UNPKG

les-openlayers

Version:

//its、openlayers、its openlayers二次封装,一个入口API 接入各种地图

559 lines (472 loc) 10.5 kB
/*通用样式*/ body, div, ul, ol, dl, dt, dd, li, dl, h1, h2, h3, h4 { margin: 0; padding: 0; font-style: normal; } ol, ul, li { list-style: none; } img { border: 0; vertical-align: middle; } body { background: #FFF; } .clear { clear: both; height: 1px; width: 100%; overflow: hidden; margin-top: -1px; } a { color: #000000; text-decoration: none; } a:hover { color: #BA2636; text-decoration: none; } .ol-attribution.ol-logo-only { bottom: 1.4em; } .hand { cursor: pointer; } .grab { cursor: -webkit-grab; cursor: -moz-grab; cursor: grab; } .grabbing { cursor: -webkit-grabbing; cursor: -moz-grabbing; cursor: grabbing; } .ol-popup-closer { /*text-decoration: none; position: absolute; top: 2px; right: 8px;*/ float: right; padding: 2px; } .popover-close { position: absolute; top: 8px; right: 10px; cursor: pointer; width: 16px; text-align: center; font-size: 20px; color: red; } .popover-close:hover { color: red; } .ol-popup-closer:hover { color: red; cursor: pointer; } .ol-popup-closer:after { content: "&times;"; } .lesTooltip { border: 1px solid #7c9abf; padding: 2px 4px; opacity: 0.8; color: #ffffff; border-radius: 4px; background-color: #ff3535; } .styleBlack { border: 1px solid #7c9abf; padding: 2px 4px; opacity: 0.8; color: #333; border-radius: 4px; background-color: #fff; } .ol-zoom { left: .5em; bottom: 2.3em; top: inherit; } /*地图控件样式开始*/ .mapTool { display: inline-block; z-index: 999; background-color: #fff; opacity: 1; } .mapTool.left-top { position: absolute; top: 10px; left: 10px; } .mapTool.left-bottom { position: absolute; bottom: 10px; left: 10px; } .mapTool.right-top { position: absolute; top: 10px; right: 10px; } .mapTool.right-bottom { position: absolute; bottom: 10px; right: 10px; } .mapTool a { line-height: 20px; display: inline-block; padding: 10px 12px 10px 0px; margin-left: -1px; position: relative; text-decoration: none; height: 40px; } .mapTool a.map-tool-btn ul { position: absolute; width: 100%; top: 40px; left: 0px; height: 0; box-shadow: 0 2px 2px rgba(0, 0, 0, .15); display: none; background-color: #fff; opacity: 1; } .mapTool a.map-tool-btn ul li { height: 32px; line-height: 32px; overflow: hidden; color: #242322; /*border: 1px solid #ddd; border-top: none;*/ } .mapTool a.map-tool-btn .fa.fa-angle-down { border: none; padding-left: 5px; margin-right: -5px; } .mapTool a.map-tool-btn .fa.fa-angle-up { border: none; padding-left: 5px; margin-right: -5px; } .mapTool a.map-tool-btn ul li i { display: inline-block; text-align: center; width: 27px; border: none; } .mapTool a i { padding: 0px 3px; display: inline-block; border-left: 1px #dbdee2 dashed; padding-left: 10px; } .mapTool a:hover, .mapTool a:hover i, .mapTool a.active, .mapTool a.active i { color: #2c9eff; } .mapTool .map-tool-btn.active i { color: #2c9eff; } .clear { clear: both; } .none { display: none; } /*地图控件样式结束*/ .crosshair { cursor: crosshair; } .hand { cursor: pointer; } .grab { cursor: -webkit-grab; cursor: -moz-grab; cursor: grab; } .grabbing { cursor: -webkit-grabbing; cursor: -moz-grabbing; cursor: grabbing; } .box-shadow { border-radius: 3px !important; box-shadow: 0 0 16px 4px rgba(47, 45, 45, 0.19); background-color: #ffffff; } /*新型弹框样式开始*/ .its-popup { width: 520px; background-color: rgba(0, 0, 0, 0.8); position: relative; cursor: default; box-shadow: 0 0 5px 0 rgba(96, 96, 96, .6); border-radius: 6px; } .its-popup:after, .its-popup:before { content: ''; width: 12px; height: 12px; /* border-top: 12px solid #fff; border-right: 12px solid transparent; border-left: 12px solid transparent;*/ position: absolute; bottom: -6px; left: 50%; margin-left: -6px; opacity: 0.9; -webkit-transform: rotate(45deg); -mz-transform: rotate(45deg); transform: rotate(45deg); border-radius: 1px; } .its-popup:before { box-shadow: 0 0 5px 0 rgba(3, 0, 0, .6); background-color: #fff; } .its-popup:after { width: 16px; height: 16px; margin-left: -8px; bottom: -6px; background: #000; opacity: 1; } .popup-title { border-bottom: 1px solid #fff; padding: 10px 0px; padding-right: 26px; margin-bottom: 8px; } .popup-swap { padding: 0px 10px; padding-bottom: 14px; } .popup-footer { text-align: right; /* padding: 4px 0px; border-bottom: 1px solid #ddd; */ } .popup-footer span { padding: 3px 0px; color: cornflowerblue; font-size: 13px; margin-right: 3px; text-align: center; cursor: pointer; } .popup-content { overflow: hidden; margin-bottom: 10px; } .popup-close { position: absolute; top: 10px; right: 8px; background: url("../image/icon/close_gray16.png") no-repeat; width: 16px; height: 16px; } .popup-close:hover { background: url("../image/icon/close_red16.png") no-repeat; cursor: pointer; } .popup-footer span .w-btn { display: inline-block; width: 69px; text-align: center; height: 22px; line-height: 24px; background-color: #4fa08a; color: #fff; border-radius: 8px; padding: 0px; } </style> /*新型弹框样式结束*/ /*base code*/ .animated { -webkit-animation-duration: 0.5s; animation-duration: 0.5s; -webkit-animation-fill-mode: both; animation-fill-mode: both; } .animated.infinite { -webkit-animation-iteration-count: infinite; animation-iteration-count: infinite; } .animated.hinge { -webkit-animation-duration: 1s; animation-duration: 1s; } /*the animation definition*/ @-webkit-keyframes fadeIn { 0% { opacity: 0; transform: scale(0); } 100% { opacity: 1; transform: scale(1); } } @keyframes fadeIn { 0% { opacity: 0; transform: scale(0); } 100% { opacity: 1; transform: scale(1); } } .fadeIn { -webkit-animation-name: fadeIn; animation-name: fadeIn } /*the animation definition*/ @-webkit-keyframes fadeInDown { 0% { opacity: 0; -webkit-transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0) } 100% { opacity: 1; -webkit-transform: none; transform: none } } @keyframes fadeInDown { 0% { opacity: 0; -webkit-transform: translate3d(0, -100%, 0); -ms-transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0) } 100% { opacity: 1; -webkit-transform: none; -ms-transform: none; transform: none } } .fadeInDown { -webkit-animation-name: fadeInDown; animation-name: fadeInDown } /*the animation definition*/ @-webkit-keyframes fadeInUp { 0% { opacity: 0; -webkit-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0) } 100% { opacity: 1; -webkit-transform: none; transform: none } } @keyframes fadeInUp { 0% { opacity: 0; -webkit-transform: translate3d(0, 100%, 0); -ms-transform: translate3d(0, 100%, 0); transform: translate3d(0, 100%, 0) } 100% { opacity: 1; -webkit-transform: none; -ms-transform: none; transform: none } } .fadeInUp { -webkit-animation-name: fadeInUp; animation-name: fadeInUp } /*the animation definition*/ @-webkit-keyframes fadeInDownBig { 0% { opacity: 0; -webkit-transform: translate3d(0, -2000px, 0); transform: translate3d(0, -2000px, 0) } 100% { opacity: 1; -webkit-transform: none; transform: none } } /*the animation definition*/ @-webkit-keyframes zoomInDown { 0% { opacity: 0; -webkit-transform: scale3d(.1, .1, .1) translate3d(0, -1000px, 0); transform: scale3d(.1, .1, .1) translate3d(0, -1000px, 0); -webkit-animation-timing-function: cubic-bezier(0.55, .055, .675, .19); animation-timing-function: cubic-bezier(0.55, .055, .675, .19) } 60% { opacity: 1; -webkit-transform: scale3d(.475, .475, .475) translate3d(0, 60px, 0); transform: scale3d(.475, .475, .475) translate3d(0, 60px, 0); -webkit-animation-timing-function: cubic-bezier(0.175, .885, .32, 1); animation-timing-function: cubic-bezier(0.175, .885, .32, 1) } } @keyframes zoomInDown { 0% { opacity: 0; -webkit-transform: scale3d(.1, .1, .1) translate3d(0, -1000px, 0); -ms-transform: scale3d(.1, .1, .1) translate3d(0, -1000px, 0); transform: scale3d(.1, .1, .1) translate3d(0, -1000px, 0); -webkit-animation-timing-function: cubic-bezier(0.55, .055, .675, .19); animation-timing-function: cubic-bezier(0.55, .055, .675, .19) } 60% { opacity: 1; -webkit-transform: scale3d(.475, .475, .475) translate3d(0, 60px, 0); -ms-transform: scale3d(.475, .475, .475) translate3d(0, 60px, 0); transform: scale3d(.475, .475, .475) translate3d(0, 60px, 0); -webkit-animation-timing-function: cubic-bezier(0.175, .885, .32, 1); animation-timing-function: cubic-bezier(0.175, .885, .32, 1) } } .zoomInDown { -webkit-animation-name: zoomInDown; animation-name: zoomInDown } .its-popup { z-index: 9999; }