Prettier everything, remove vendored bootstrap
These are installed now via pnpm
This commit is contained in:
parent
004a49c4e4
commit
5779242f22
122 changed files with 297 additions and 13665 deletions
|
|
@ -1,38 +1,36 @@
|
|||
<script setup lang="ts">
|
||||
import { onMounted, onUnmounted, ref } from 'vue';
|
||||
import maplibregl from 'maplibre-gl';
|
||||
import { onMounted, onUnmounted, ref } from "vue";
|
||||
import maplibregl from "maplibre-gl";
|
||||
|
||||
const mapContainer = ref<HTMLDivElement | null>(null);
|
||||
let map: maplibregl.Map | null = null;
|
||||
|
||||
onMounted(() => {
|
||||
if (!mapContainer.value) return;
|
||||
if (!mapContainer.value) return;
|
||||
|
||||
map = new maplibregl.Map({
|
||||
container: mapContainer.value,
|
||||
style: 'https://demotiles.maplibre.org/style.json',
|
||||
center: [-74.5, 40], // [lng, lat]
|
||||
zoom: 9
|
||||
});
|
||||
map = new maplibregl.Map({
|
||||
container: mapContainer.value,
|
||||
style: "https://demotiles.maplibre.org/style.json",
|
||||
center: [-74.5, 40], // [lng, lat]
|
||||
zoom: 9,
|
||||
});
|
||||
|
||||
// Add a marker as an example
|
||||
new maplibregl.Marker()
|
||||
.setLngLat([-74.5, 40])
|
||||
.addTo(map);
|
||||
// Add a marker as an example
|
||||
new maplibregl.Marker().setLngLat([-74.5, 40]).addTo(map);
|
||||
});
|
||||
|
||||
onUnmounted(() => {
|
||||
map?.remove();
|
||||
map?.remove();
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div ref="mapContainer" class="map-container"></div>
|
||||
<div ref="mapContainer" class="map-container"></div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.map-container {
|
||||
width: 100%;
|
||||
height: 500px;
|
||||
width: 100%;
|
||||
height: 500px;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue