mirror of
https://github.com/directus/directus.git
synced 2026-01-29 10:48:29 -05:00
Add OpenStreetMaps Attribution (#10691)
This commit is contained in:
@@ -250,7 +250,7 @@ export default defineComponent({
|
||||
map = new Map({
|
||||
container: container.value!,
|
||||
style: style.value,
|
||||
attributionControl: false,
|
||||
customAttribution: '© OpenStreetMap contributors',
|
||||
dragRotate: false,
|
||||
logoPosition: 'bottom-right',
|
||||
...props.defaultView,
|
||||
|
||||
@@ -85,7 +85,7 @@ export default defineComponent({
|
||||
map = new Map({
|
||||
container: mapContainer.value!,
|
||||
style: style.value,
|
||||
attributionControl: false,
|
||||
customAttribution: '© OpenStreetMap contributors',
|
||||
...(defaultView.value || {}),
|
||||
...(mapboxKey ? { accessToken: mapboxKey } : {}),
|
||||
});
|
||||
|
||||
@@ -125,7 +125,7 @@ export default defineComponent({
|
||||
map = new Map({
|
||||
container: 'map-container',
|
||||
style: style.value,
|
||||
attributionControl: false,
|
||||
customAttribution: '© OpenStreetMap contributors',
|
||||
dragRotate: false,
|
||||
...props.camera,
|
||||
...(mapboxKey ? { accessToken: mapboxKey } : {}),
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
.mapboxgl-map {
|
||||
font: inherit;
|
||||
}
|
||||
@@ -71,7 +70,8 @@
|
||||
}
|
||||
|
||||
.mapboxgl-search-location-dot {
|
||||
&, &::before {
|
||||
&,
|
||||
&::before {
|
||||
background-color: var(--purple);
|
||||
}
|
||||
}
|
||||
@@ -79,7 +79,7 @@
|
||||
.mapboxgl-ctrl-attrib.mapboxgl-compact {
|
||||
min-width: 24px;
|
||||
min-height: 24px;
|
||||
color: var(--foreground-subdued);
|
||||
color: var(--foreground-normal);
|
||||
background: var(--background-input) !important;
|
||||
box-shadow: var(--card-shadow);
|
||||
|
||||
@@ -108,6 +108,16 @@
|
||||
}
|
||||
}
|
||||
|
||||
.mapboxgl-ctrl-attrib:not(.mapboxgl-compact) {
|
||||
font-size: 0.8em;
|
||||
color: var(--foreground-normal);
|
||||
background: var(--background-input);
|
||||
border-radius: 6px 0 0 0;
|
||||
border: 1px solid var(--border-normal);
|
||||
border-right: none;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.mapboxgl-ctrl-geocoder {
|
||||
font-size: inherit !important;
|
||||
font-family: inherit !important;
|
||||
@@ -171,7 +181,6 @@
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
|
||||
.maplibregl-ctrl-top-right {
|
||||
max-width: 80%;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user