maplibre-gl
Version:
BSD licensed community fork of mapbox-gl, a WebGL interactive maps library
956 lines (805 loc) • 28.7 kB
CSS
.maplibregl-map,
.mapboxgl-map {
font: 12px/20px "Helvetica Neue", Arial, Helvetica, sans-serif;
overflow: hidden;
position: relative;
-webkit-tap-highlight-color: rgb(0 0 0 / 0%);
}
.maplibregl-canvas,
.mapboxgl-canvas {
position: absolute;
left: 0;
top: 0;
}
.maplibregl-map:fullscreen,
.mapboxgl-map:fullscreen {
width: 100%;
height: 100%;
}
.maplibregl-canvas-container.maplibregl-interactive,
.maplibregl-ctrl-group button.maplibregl-ctrl-compass,
.mapboxgl-canvas-container.mapboxgl-interactive,
.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass {
cursor: grab;
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer,
.mapboxgl-canvas-container.mapboxgl-interactive.mapboxgl-track-pointer {
cursor: pointer;
}
.maplibregl-canvas-container.maplibregl-interactive:active,
.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active,
.mapboxgl-canvas-container.mapboxgl-interactive:active,
.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass:active {
cursor: grabbing;
}
.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,
.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas,
.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,
.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas {
touch-action: pan-x pan-y;
}
.maplibregl-canvas-container.maplibregl-touch-drag-pan,
.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas,
.mapboxgl-canvas-container.mapboxgl-touch-drag-pan,
.mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas {
touch-action: pinch-zoom;
}
.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,
.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas,
.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,
.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas {
touch-action: none;
}
.maplibregl-ctrl-top-left,
.maplibregl-ctrl-top-right,
.maplibregl-ctrl-bottom-left,
.maplibregl-ctrl-bottom-right,
.mapboxgl-ctrl-top-left,
.mapboxgl-ctrl-top-right,
.mapboxgl-ctrl-bottom-left,
.mapboxgl-ctrl-bottom-right { position: absolute; pointer-events: none; z-index: 2; }
.maplibregl-ctrl-top-left,
.mapboxgl-ctrl-top-left { top: 0; left: 0; }
.maplibregl-ctrl-top-right,
.mapboxgl-ctrl-top-right { top: 0; right: 0; }
.maplibregl-ctrl-bottom-left,
.mapboxgl-ctrl-bottom-left { bottom: 0; left: 0; }
.maplibregl-ctrl-bottom-right,
.mapboxgl-ctrl-bottom-right { right: 0; bottom: 0; }
.maplibregl-ctrl,
.mapboxgl-ctrl {
clear: both;
pointer-events: auto;
/* workaround for a Safari bug https://github.com/mapbox/mapbox-gl-js/issues/8185 */
transform: translate(0, 0);
}
.maplibregl-ctrl-top-left .maplibregl-ctrl,
.mapboxgl-ctrl-top-left .mapboxgl-ctrl { margin: 10px 0 0 10px; float: left; }
.maplibregl-ctrl-top-right .maplibregl-ctrl,
.mapboxgl-ctrl-top-right .mapboxgl-ctrl { margin: 10px 10px 0 0; float: right; }
.maplibregl-ctrl-bottom-left .maplibregl-ctrl,
.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl { margin: 0 0 10px 10px; float: left; }
.maplibregl-ctrl-bottom-right .maplibregl-ctrl,
.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl { margin: 0 10px 10px 0; float: right; }
.maplibregl-ctrl-group,
.mapboxgl-ctrl-group {
border-radius: 4px;
background: #fff;
}
.maplibregl-ctrl-group:not(:empty),
.mapboxgl-ctrl-group:not(:empty) {
box-shadow: 0 0 0 2px rgb(0 0 0 / 10%);
}
@media (-ms-high-contrast: active) {
.maplibregl-ctrl-group:not(:empty),
.mapboxgl-ctrl-group:not(:empty) {
box-shadow: 0 0 0 2px ButtonText;
}
}
.maplibregl-ctrl-group button,
.mapboxgl-ctrl-group button {
width: 29px;
height: 29px;
display: block;
padding: 0;
outline: none;
border: 0;
box-sizing: border-box;
background-color: transparent;
cursor: pointer;
}
.maplibregl-ctrl-group button + button,
.mapboxgl-ctrl-group button + button {
border-top: 1px solid #ddd;
}
.maplibregl-ctrl button .maplibregl-ctrl-icon,
.mapboxgl-ctrl button .mapboxgl-ctrl-icon {
display: block;
width: 100%;
height: 100%;
background-repeat: no-repeat;
background-position: center center;
}
@media (-ms-high-contrast: active) {
.maplibregl-ctrl-icon,
.mapboxgl-ctrl-icon {
background-color: transparent;
}
.maplibregl-ctrl-group button + button,
.mapboxgl-ctrl-group button + button {
border-top: 1px solid ButtonText;
}
}
/* https://bugzilla.mozilla.org/show_bug.cgi?id=140562 */
.maplibregl-ctrl button::-moz-focus-inner,
.mapboxgl-ctrl button::-moz-focus-inner {
border: 0;
padding: 0;
}
.maplibregl-ctrl-attrib-button:focus,
.maplibregl-ctrl-group button:focus,
.mapboxgl-ctrl-attrib-button:focus,
.mapboxgl-ctrl-group button:focus {
box-shadow: 0 0 2px 2px rgb(0 150 255 / 100%);
}
.maplibregl-ctrl button:disabled,
.mapboxgl-ctrl button:disabled {
cursor: not-allowed;
}
.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon,
.mapboxgl-ctrl button:disabled .mapboxgl-ctrl-icon {
opacity: 0.25;
}
.maplibregl-ctrl button:not(:disabled):hover,
.mapboxgl-ctrl button:not(:disabled):hover {
background-color: rgb(0 0 0 / 5%);
}
.maplibregl-ctrl-group button:focus:focus-visible,
.mapboxgl-ctrl-group button:focus:focus-visible {
box-shadow: 0 0 2px 2px rgb(0 150 255 / 100%);
}
.maplibregl-ctrl-group button:focus:not(:focus-visible),
.mapboxgl-ctrl-group button:focus:not(:focus-visible) {
box-shadow: none;
}
.maplibregl-ctrl-group button:focus:first-child,
.mapboxgl-ctrl-group button:focus:first-child {
border-radius: 4px 4px 0 0;
}
.maplibregl-ctrl-group button:focus:last-child,
.mapboxgl-ctrl-group button:focus:last-child {
border-radius: 0 0 4px 4px;
}
.maplibregl-ctrl-group button:focus:only-child,
.mapboxgl-ctrl-group button:focus:only-child {
border-radius: inherit;
}
.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon,
.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon {
background-image: svg-load("svg/maplibregl-ctrl-zoom-out.svg", fill: #333);
}
.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon,
.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon {
background-image: svg-load("svg/maplibregl-ctrl-zoom-in.svg", fill: #333);
}
@media (-ms-high-contrast: active) {
.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon,
.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon {
background-image: svg-load("svg/maplibregl-ctrl-zoom-out.svg", fill: #fff);
}
.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon,
.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon {
background-image: svg-load("svg/maplibregl-ctrl-zoom-in.svg", fill: #fff);
}
}
@media (-ms-high-contrast: black-on-white) {
.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon,
.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon {
background-image: svg-load("svg/maplibregl-ctrl-zoom-out.svg", fill: #000);
}
.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon,
.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon {
background-image: svg-load("svg/maplibregl-ctrl-zoom-in.svg", fill: #000);
}
}
.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon,
.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon {
background-image: svg-load("svg/maplibregl-ctrl-fullscreen.svg", fill: #333);
}
.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon,
.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon {
background-image: svg-load("svg/maplibregl-ctrl-shrink.svg");
}
@media (-ms-high-contrast: active) {
.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon,
.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon {
background-image: svg-load("svg/maplibregl-ctrl-fullscreen.svg", fill: #fff);
}
.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon,
.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon {
background-image: svg-load("svg/maplibregl-ctrl-shrink.svg", fill: #fff);
}
}
@media (-ms-high-contrast: black-on-white) {
.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon,
.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon {
background-image: svg-load("svg/maplibregl-ctrl-fullscreen.svg", fill: #000);
}
.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon,
.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon {
background-image: svg-load("svg/maplibregl-ctrl-shrink.svg", fill: #000);
}
}
.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon,
.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon {
background-image: svg-load("svg/maplibregl-ctrl-compass.svg", fill: #333);
}
@media (-ms-high-contrast: active) {
.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon,
.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon {
@svg-load ctrl-compass-white url("svg/maplibregl-ctrl-compass.svg") {
fill: #fff;
#south { fill: #999; }
}
background-image: svg-inline(ctrl-compass-white);
}
}
@media (-ms-high-contrast: black-on-white) {
.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon,
.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon {
background-image: svg-load("svg/maplibregl-ctrl-compass.svg", fill: #000);
}
}
@svg-load ctrl-terrain url("svg/maplibregl-ctrl-terrain.svg") {
fill: #333;
#stroke { display: none; }
}
@svg-load ctrl-terrain-enabled url("svg/maplibregl-ctrl-terrain.svg") {
fill: #33b5e5;
#stroke { display: none; }
}
.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon,
.mapboxgl-ctrl button.mapboxgl-ctrl-terrain .mapboxgl-ctrl-icon {
background-image: svg-inline(ctrl-terrain);
}
.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon,
.mapboxgl-ctrl button.mapboxgl-ctrl-terrain-enabled .mapboxgl-ctrl-icon {
background-image: svg-inline(ctrl-terrain-enabled);
}
@svg-load ctrl-geolocate url("svg/maplibregl-ctrl-geolocate.svg") {
fill: #333;
#stroke { display: none; }
}
@svg-load ctrl-geolocate-white url("svg/maplibregl-ctrl-geolocate.svg") {
fill: #fff;
#stroke { display: none; }
}
@svg-load ctrl-geolocate-black url("svg/maplibregl-ctrl-geolocate.svg") {
fill: #000;
#stroke { display: none; }
}
@svg-load ctrl-geolocate-disabled url("svg/maplibregl-ctrl-geolocate.svg") {
fill: #aaa;
#stroke { fill: #f00; }
}
@svg-load ctrl-geolocate-disabled-white url("svg/maplibregl-ctrl-geolocate.svg") {
fill: #999;
#stroke { fill: #f00; }
}
@svg-load ctrl-geolocate-disabled-black url("svg/maplibregl-ctrl-geolocate.svg") {
fill: #666;
#stroke { fill: #f00; }
}
@svg-load ctrl-geolocate-active url("svg/maplibregl-ctrl-geolocate.svg") {
fill: #33b5e5;
#stroke { display: none; }
}
@svg-load ctrl-geolocate-active-error url("svg/maplibregl-ctrl-geolocate.svg") {
fill: #e58978;
#stroke { display: none; }
}
@svg-load ctrl-geolocate-background url("svg/maplibregl-ctrl-geolocate.svg") {
fill: #33b5e5;
#stroke { display: none; }
#dot { display: none; }
}
@svg-load ctrl-geolocate-background-error url("svg/maplibregl-ctrl-geolocate.svg") {
fill: #e54e33;
#stroke { display: none; }
#dot { display: none; }
}
.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon,
.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon {
background-image: svg-inline(ctrl-geolocate);
}
.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon,
.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon {
background-image: svg-inline(ctrl-geolocate-disabled);
}
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon,
.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon {
background-image: svg-inline(ctrl-geolocate-active);
}
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon,
.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon {
background-image: svg-inline(ctrl-geolocate-active-error);
}
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon,
.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon {
background-image: svg-inline(ctrl-geolocate-background);
}
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon,
.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon {
background-image: svg-inline(ctrl-geolocate-background-error);
}
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon,
.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-waiting .mapboxgl-ctrl-icon {
animation: maplibregl-spin 2s infinite linear;
}
@media (-ms-high-contrast: active) {
.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon,
.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon {
background-image: svg-inline(ctrl-geolocate-white);
}
.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon,
.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon {
background-image: svg-inline(ctrl-geolocate-disabled-white);
}
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon,
.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon {
background-image: svg-inline(ctrl-geolocate-active);
}
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon,
.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon {
background-image: svg-inline(ctrl-geolocate-active-error);
}
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon,
.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon {
background-image: svg-inline(ctrl-geolocate-background);
}
.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon,
.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon {
background-image: svg-inline(ctrl-geolocate-background-error);
}
}
@media (-ms-high-contrast: black-on-white) {
.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon,
.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon {
background-image: svg-inline(ctrl-geolocate-black);
}
.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon,
.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon {
background-image: svg-inline(ctrl-geolocate-disabled-black);
}
}
@keyframes maplibregl-spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
a.maplibregl-ctrl-logo,
a.mapboxgl-ctrl-logo {
width: 88px;
height: 23px;
margin: 0 0 -4px -4px;
display: block;
background-repeat: no-repeat;
cursor: pointer;
overflow: hidden;
background-image: svg-load("svg/maplibregl-ctrl-logo.svg");
}
a.maplibregl-ctrl-logo.maplibregl-compact,
a.mapboxgl-ctrl-logo.mapboxgl-compact {
width: 14px;
}
@media (-ms-high-contrast: active) {
a.maplibregl-ctrl-logo,
a.mapboxgl-ctrl-logo {
@svg-load ctrl-logo-white url("svg/maplibregl-ctrl-logo.svg") {
#outline { opacity: 1; }
#fill { opacity: 1; }
}
background-color: transparent;
background-image: svg-inline(ctrl-logo-white);
}
}
@media (-ms-high-contrast: black-on-white) {
a.maplibregl-ctrl-logo,
a.mapboxgl-ctrl-logo {
@svg-load ctrl-logo-black url("svg/maplibregl-ctrl-logo.svg") {
#outline { opacity: 1; fill: #fff; stroke: #fff; }
#fill { opacity: 1; fill: #000; }
}
background-image: svg-inline(ctrl-logo-black);
}
}
.maplibregl-ctrl.maplibregl-ctrl-attrib,
.mapboxgl-ctrl.mapboxgl-ctrl-attrib {
padding: 0 5px;
background-color: rgb(255 255 255 / 50%);
margin: 0;
}
@media screen {
.maplibregl-ctrl-attrib.maplibregl-compact,
.mapboxgl-ctrl-attrib.mapboxgl-compact {
min-height: 20px;
padding: 2px 24px 2px 0;
margin: 10px;
position: relative;
background-color: #fff;
border-radius: 12px;
box-sizing: content-box;
}
.maplibregl-ctrl-attrib.maplibregl-compact-show,
.mapboxgl-ctrl-attrib.mapboxgl-compact-show {
padding: 2px 28px 2px 8px;
visibility: visible;
}
.maplibregl-ctrl-top-left > .maplibregl-ctrl-attrib.maplibregl-compact-show,
.maplibregl-ctrl-bottom-left > .maplibregl-ctrl-attrib.maplibregl-compact-show,
.mapboxgl-ctrl-top-left > .mapboxgl-ctrl-attrib.mapboxgl-compact-show,
.mapboxgl-ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact-show {
padding: 2px 8px 2px 28px;
border-radius: 12px;
}
.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner,
.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner {
display: none;
}
.maplibregl-ctrl-attrib-button,
.mapboxgl-ctrl-attrib-button {
display: none;
cursor: pointer;
position: absolute;
background-image: svg-load("svg/maplibregl-ctrl-attrib.svg");
background-color: rgb(255 255 255 / 50%);
width: 24px;
height: 24px;
box-sizing: border-box;
border-radius: 12px;
outline: none;
top: 0;
right: 0;
border: 0;
}
.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button {
appearance: none;
list-style: none;
}
.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker {
display: none;
}
.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button,
.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,
.mapboxgl-ctrl-top-left .mapboxgl-ctrl-attrib-button,
.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-attrib-button {
left: 0;
}
.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,
.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner,
.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-button,
.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-inner {
display: block;
}
.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button,
.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-button {
background-color: rgb(0 0 0 / 5%);
}
.maplibregl-ctrl-bottom-right > .maplibregl-ctrl-attrib.maplibregl-compact::after,
.mapboxgl-ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after {
bottom: 0;
right: 0;
}
.maplibregl-ctrl-top-right > .maplibregl-ctrl-attrib.maplibregl-compact::after,
.mapboxgl-ctrl-top-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after {
top: 0;
right: 0;
}
.maplibregl-ctrl-top-left > .maplibregl-ctrl-attrib.maplibregl-compact::after,
.mapboxgl-ctrl-top-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after {
top: 0;
left: 0;
}
.maplibregl-ctrl-bottom-left > .maplibregl-ctrl-attrib.maplibregl-compact::after,
.mapboxgl-ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after {
bottom: 0;
left: 0;
}
}
@media screen and (-ms-high-contrast: active) {
.maplibregl-ctrl-attrib.maplibregl-compact::after,
.mapboxgl-ctrl-attrib.mapboxgl-compact::after {
background-image: svg-load("svg/maplibregl-ctrl-attrib.svg", fill=#fff);
}
}
@media screen and (-ms-high-contrast: black-on-white) {
.maplibregl-ctrl-attrib.maplibregl-compact::after,
.mapboxgl-ctrl-attrib.mapboxgl-compact::after {
background-image: svg-load("svg/maplibregl-ctrl-attrib.svg");
}
}
.maplibregl-ctrl-attrib a,
.mapboxgl-ctrl-attrib a {
color: rgb(0 0 0 / 75%);
text-decoration: none;
}
.maplibregl-ctrl-attrib a:hover,
.mapboxgl-ctrl-attrib a:hover {
color: inherit;
text-decoration: underline;
}
.maplibregl-attrib-empty,
.mapboxgl-attrib-empty {
display: none;
}
.maplibregl-ctrl-scale,
.mapboxgl-ctrl-scale {
background-color: rgb(255 255 255 / 75%);
font-size: 10px;
border-width: medium 2px 2px;
border-style: none solid solid;
border-color: #333;
padding: 0 5px;
color: #333;
box-sizing: border-box;
}
.maplibregl-popup,
.mapboxgl-popup {
position: absolute;
top: 0;
left: 0;
display: flex;
will-change: transform;
pointer-events: none;
}
.maplibregl-popup-anchor-top,
.maplibregl-popup-anchor-top-left,
.maplibregl-popup-anchor-top-right,
.mapboxgl-popup-anchor-top,
.mapboxgl-popup-anchor-top-left,
.mapboxgl-popup-anchor-top-right {
flex-direction: column;
}
.maplibregl-popup-anchor-bottom,
.maplibregl-popup-anchor-bottom-left,
.maplibregl-popup-anchor-bottom-right,
.mapboxgl-popup-anchor-bottom,
.mapboxgl-popup-anchor-bottom-left,
.mapboxgl-popup-anchor-bottom-right {
flex-direction: column-reverse;
}
.maplibregl-popup-anchor-left,
.mapboxgl-popup-anchor-left {
flex-direction: row;
}
.maplibregl-popup-anchor-right,
.mapboxgl-popup-anchor-right {
flex-direction: row-reverse;
}
.maplibregl-popup-tip,
.mapboxgl-popup-tip {
width: 0;
height: 0;
border: 10px solid transparent;
z-index: 1;
}
.maplibregl-popup-anchor-top .maplibregl-popup-tip,
.mapboxgl-popup-anchor-top .mapboxgl-popup-tip {
align-self: center;
border-top: none;
border-bottom-color: #fff;
}
.maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip {
align-self: flex-start;
border-top: none;
border-left: none;
border-bottom-color: #fff;
}
.maplibregl-popup-anchor-top-right .maplibregl-popup-tip,
.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip {
align-self: flex-end;
border-top: none;
border-right: none;
border-bottom-color: #fff;
}
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip,
.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
align-self: center;
border-bottom: none;
border-top-color: #fff;
}
.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip {
align-self: flex-start;
border-bottom: none;
border-left: none;
border-top-color: #fff;
}
.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip,
.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip {
align-self: flex-end;
border-bottom: none;
border-right: none;
border-top-color: #fff;
}
.maplibregl-popup-anchor-left .maplibregl-popup-tip,
.mapboxgl-popup-anchor-left .mapboxgl-popup-tip {
align-self: center;
border-left: none;
border-right-color: #fff;
}
.maplibregl-popup-anchor-right .maplibregl-popup-tip,
.mapboxgl-popup-anchor-right .mapboxgl-popup-tip {
align-self: center;
border-right: none;
border-left-color: #fff;
}
.maplibregl-popup-close-button,
.mapboxgl-popup-close-button {
position: absolute;
right: 0;
top: 0;
border: 0;
border-radius: 0 3px 0 0;
cursor: pointer;
background-color: transparent;
}
.maplibregl-popup-close-button:hover,
.mapboxgl-popup-close-button:hover {
background-color: rgb(0 0 0 / 5%);
}
.maplibregl-popup-content,
.mapboxgl-popup-content {
position: relative;
background: #fff;
border-radius: 3px;
box-shadow: 0 1px 2px rgb(0 0 0 / 10%);
padding: 15px 10px;
pointer-events: auto;
}
.maplibregl-popup-anchor-top-left .maplibregl-popup-content,
.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content {
border-top-left-radius: 0;
}
.maplibregl-popup-anchor-top-right .maplibregl-popup-content,
.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content {
border-top-right-radius: 0;
}
.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content,
.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content {
border-bottom-left-radius: 0;
}
.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content,
.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content {
border-bottom-right-radius: 0;
}
.maplibregl-popup-track-pointer,
.mapboxgl-popup-track-pointer {
display: none;
}
.maplibregl-popup-track-pointer *,
.mapboxgl-popup-track-pointer * {
pointer-events: none;
user-select: none;
}
.maplibregl-map:hover .maplibregl-popup-track-pointer,
.mapboxgl-map:hover .mapboxgl-popup-track-pointer {
display: flex;
}
.maplibregl-map:active .maplibregl-popup-track-pointer,
.mapboxgl-map:active .mapboxgl-popup-track-pointer {
display: none;
}
.maplibregl-marker,
.mapboxgl-marker {
position: absolute;
top: 0;
left: 0;
will-change: transform;
}
.maplibregl-user-location-dot,
.mapboxgl-user-location-dot {
background-color: #1da1f2;
width: 15px;
height: 15px;
border-radius: 50%;
}
.maplibregl-user-location-dot::before,
.mapboxgl-user-location-dot::before {
background-color: #1da1f2;
content: "";
width: 15px;
height: 15px;
border-radius: 50%;
position: absolute;
animation: maplibregl-user-location-dot-pulse 2s infinite;
}
.maplibregl-user-location-dot::after,
.mapboxgl-user-location-dot::after {
border-radius: 50%;
border: 2px solid #fff;
content: "";
height: 19px;
left: -2px;
position: absolute;
top: -2px;
width: 19px;
box-sizing: border-box;
box-shadow: 0 0 3px rgb(0 0 0 / 35%);
}
@keyframes maplibregl-user-location-dot-pulse {
0% { transform: scale(1); opacity: 1; }
70% { transform: scale(3); opacity: 0; }
100% { transform: scale(1); opacity: 0; }
}
.maplibregl-user-location-dot-stale,
.mapboxgl-user-location-dot-stale {
background-color: #aaa;
}
.maplibregl-user-location-dot-stale::after,
.mapboxgl-user-location-dot-stale::after {
display: none;
}
.maplibregl-user-location-accuracy-circle,
.mapboxgl-user-location-accuracy-circle {
background-color: #1da1f233;
width: 1px;
height: 1px;
border-radius: 100%;
}
.maplibregl-crosshair,
.maplibregl-crosshair .maplibregl-interactive,
.maplibregl-crosshair .maplibregl-interactive:active,
.mapboxgl-crosshair,
.mapboxgl-crosshair .mapboxgl-interactive,
.mapboxgl-crosshair .mapboxgl-interactive:active {
cursor: crosshair;
}
.maplibregl-boxzoom,
.mapboxgl-boxzoom {
position: absolute;
top: 0;
left: 0;
width: 0;
height: 0;
background: #fff;
border: 2px dotted #202020;
opacity: 0.5;
}
.maplibregl-cooperative-gesture-screen {
background: rgba(0 0 0 / 40%);
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
justify-content: center;
align-items: center;
color: white;
padding: 1rem;
font-size: 1.4em;
line-height: 1.2;
opacity: 0;
pointer-events: none;
transition: opacity 1s ease 1s;
}
.maplibregl-cooperative-gesture-screen.maplibregl-show {
opacity: 1;
transition: opacity 0.05s;
}
.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message {
display: none;
}
@media (hover: none), (max-width: 480px) {
.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message {
display: none;
}
.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message {
display: block;
}
}