gmap-ol
Version:
A set of helper classes for working with openLayers.
106 lines (103 loc) • 2.24 kB
CSS
.ol-viewport {
zoom: 1 ;
}
.ol-control{
display: none;
}
.ol-popup, .gmap-popover {
position: absolute;
background-color: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(6px);
box-shadow: 0 1px 4px rgba(0,0,0,0.2);
padding: 14px;
border-radius: 10px;
border: 1px solid #cccccc;
bottom: 12px;
left: -50px;
min-width: 150px;
}
.gmap-popover {
padding: 0px;
border-radius: 6px;
z-index: 1060;
}
.ol-popup:after, .ol-popup:before, .gmap-popover:after, .gmap-popover:before {
top: 100%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
}
.ol-popup:after, .gmap-popover:after {
border-top-color: white;
border-width: 10px;
left: 48px;
margin-left: -10px;
}
.ol-popup:before, .gmap-popover:before {
border-top-color: #cccccc;
border-width: 11px;
left: 48px;
margin-left: -11px;
}
.ol-popup-closer {
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
text-decoration: none;
position: absolute;
top: 4px;
right: 6px;
z-index: 100;
cursor: pointer;
}
.ol-popup-closer:after {
content: "✖";
color: #00aaff;
font-size: 16px;
pointer-events: auto;
}
.gmap-popover::before {
border: none;
background-color: rgba(0, 0, 0, 0.4);
border-radius: 10px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 0, 0, 0.4);
content: "";
width: 100%;
height: 100%;
position: absolute;
top: 2px;
z-index: -1;
transform: skewX(-45deg) translate(0px, 0px) scaleY(0.5);
transform-origin: left bottom 0;
}
.gmap-popover-content {
padding: 4px 10px;
background: #fff;
border-radius: 6px;
}
.gmap-pick-list li{
display: flex;
align-items: center;
height: 30px;
cursor: pointer;
white-space: nowrap;
pointer-events: auto;
}
.gmap-pick-list li:hover{
color: #00aaff;
}
.gmap-title-header {
padding: 6px 10px;
margin-bottom: 0;
font-size: 14px;
font-weight: 700;
background-color: #f7f7f7;
border-bottom: 1px solid #ebebeb;
border-top-left-radius: calc(.3rem - 1px);
border-top-right-radius: calc(.3rem - 1px);
}