From e82afbb941a9c79dfbbab3c41f5d2d9dda262dbb Mon Sep 17 00:00:00 2001 From: solderq35 Date: Wed, 4 Oct 2023 17:09:09 -0700 Subject: [PATCH] remove comments, console logs, reset env --- .env.development | 2 +- src/components/building_list/building_list.vue | 1 - src/components/map/map.vue | 11 ----------- 3 files changed, 1 insertion(+), 13 deletions(-) diff --git a/.env.development b/.env.development index b02de683..5fee36aa 100644 --- a/.env.development +++ b/.env.development @@ -1,2 +1,2 @@ -VUE_APP_ROOT_API=https://api.sustainability.oregonstate.edu/v2/energy +VUE_APP_ROOT_API=http://localhost:3000 VUE_APP_HOST_ADDRESS=http://localhost:8080 \ No newline at end of file diff --git a/src/components/building_list/building_list.vue b/src/components/building_list/building_list.vue index 65517e93..b489c12d 100644 --- a/src/components/building_list/building_list.vue +++ b/src/components/building_list/building_list.vue @@ -150,7 +150,6 @@ export default { .map( e => { return e.id } ) - console.log( values ) for ( let card of this.$refs.card ) { if ( values.indexOf( card.id ) < 0 ) { card.$el.parentNode.style.display = 'none' diff --git a/src/components/map/map.vue b/src/components/map/map.vue index 88e91c34..5b61775f 100644 --- a/src/components/map/map.vue +++ b/src/components/map/map.vue @@ -461,29 +461,18 @@ export default { watch: { selectedOption ( newVal ) { this.rKey++ - console.log( newVal ) this.$nextTick( () => { this.map = this.$refs.map.mapObject for ( var layerKey of Object.keys( this.map._layers ) ) { let layer = this.map._layers[layerKey] - // console.log(this.$store.getters['map/building']( 28 )) if ( layer.feature && newVal !== 'All' ) { - console.log( layer.feature.properties.id ) - // console.log( this.$store.getters['map/building']( layer.feature.properties.id ).description ) - console.log( layer.feature.properties.group ) let descArray = this.$store.getters['map/building']( layer.feature.properties.id ).description.split( ', ' ) - console.log( descArray ) let descLength = 0 for ( let i = 0; i < descArray.length; i++ ) { - console.log( descArray[i] ) if ( newVal.includes( descArray[i] ) ) { descLength += 1 - console.log( descLength ) - // this.map.removeLayer( layer ) - // console.log('hmm') } } - console.log( descLength ) if ( descLength === 0 ) { this.map.removeLayer( layer ) }