Skip to content

Commit f749aba

Browse files
committed
remove osm vector map display
1 parent f007b85 commit f749aba

3 files changed

Lines changed: 5 additions & 10 deletions

File tree

client/src/MapStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async function isVectorBaseMapAvailable(vectorMapUrl: string) {
2626
type SideBarCard = 'indicators' | 'charts';
2727

2828
export default class MapStore {
29-
public static osmBaseMap = ref<'none' | 'osm-raster' | 'osm-vector'>('osm-vector');
29+
public static osmBaseMap = ref<'none' | 'osm-raster' | 'osm-vector'>('osm-raster');
3030

3131
public static userIsStaff = computed(() => !!UVdatApi.user?.is_staff);
3232

client/src/components/Map.vue

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Protocol as PMTilesProtocol } from 'pmtiles';
55
import {
66
Ref, defineComponent, onMounted, ref, watch,
77
} from 'vue';
8-
import MapStore, { VECTOR_PMTILES_URL } from '../MapStore';
8+
import MapStore from '../MapStore';
99
import {
1010
updateSelected,
1111
} from '../map/mapVectorLayers';
@@ -81,10 +81,6 @@ export default defineComponent({
8181
tileSize: 256,
8282
attribution: '© OpenStreetMap contributors',
8383
},
84-
[OSM_VECTOR_ID]: {
85-
type: 'vector',
86-
url: `pmtiles://${VECTOR_PMTILES_URL}`,
87-
},
8884
'tva-region': {
8985
type: 'geojson',
9086
data: TVA_GEOJSON,
@@ -125,7 +121,6 @@ export default defineComponent({
125121
minzoom: 0,
126122
maxzoom: 19,
127123
},
128-
...VECTOR_LAYERS,
129124
{
130125
id: 'naip-imagery-tiles',
131126
type: 'raster',

client/src/components/MapTypePicker.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<script setup lang="ts">
2-
import { onMounted, onUnmounted } from 'vue';
2+
import { onMounted, onUnmounted, ref } from 'vue';
33
import MapStore from '../MapStore';
44
55
const mapType = defineModel<string>({ required: true });
66
77
const { vectorBaseMapAvailable } = MapStore;
88
let cancel: (() => void) | undefined;
9-
9+
const disableOSMVector = ref(true);
1010
onMounted(() => {
1111
({ cancel } = MapStore.pollForVectorBasemap());
1212
});
@@ -25,7 +25,7 @@ onUnmounted(() => {
2525
<v-list-item>
2626
<v-radio label="OSM Raster Map" value="osm-raster" />
2727
</v-list-item>
28-
<v-list-item>
28+
<v-list-item v-if="!disableOSMVector">
2929
<div class="d-flex flex-row align-center">
3030
<v-radio label="OSM Vector Map" value="osm-vector" :disabled="!vectorBaseMapAvailable" />
3131
<v-tooltip v-if="!vectorBaseMapAvailable" location="bottom">

0 commit comments

Comments
 (0)