Skip to content

Commit

Permalink
tested differet tailwind config in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Aug 10, 2024
1 parent 8877c23 commit 234c0ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions webclient/app/components/DetailsInteractiveMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ function loadInteractiveMap() {
if (document.getElementById("interactive-map")?.classList.contains("maplibregl-map")) {
marker.value?.remove();
} else {
// @ts-expect-error somehow this is too deep for typescript
map.value = initMap("interactive-map");
document.getElementById("interactive-map")?.classList.remove("loading");
Expand All @@ -33,7 +34,6 @@ function loadInteractiveMap() {
marker.value = new Marker({ element: createMarker() });
const coords = props.data.coords;
if (map.value !== undefined) {
// @ts-expect-error somehow this is too deep for typescript
marker.value.setLngLat([coords.lon, coords.lat]);
marker.value.addTo(map.value as Map);
}
Expand Down Expand Up @@ -74,7 +74,7 @@ function createMarker(hueRotation = 0) {
return markerDiv;
}
function initMap(containerId: string) {
function initMap(containerId: string): Map {
const map = new Map({
container: containerId,
// to make sure that users can share urls
Expand Down
2 changes: 1 addition & 1 deletion webclient/app/components/IndoorMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function createMarker(hueRotation = 0): HTMLDivElement {
return markerDiv;
}
async function initMap(containerId: string) {
async function initMap(containerId: string): Promise<MaplibreMapWithIndoor> {
const map = new Map({
container: containerId,
// to make sure that users can share urls
Expand Down

0 comments on commit 234c0ec

Please sign in to comment.