Skip to content

Commit

Permalink
remove comments, console logs, reset env
Browse files Browse the repository at this point in the history
  • Loading branch information
solderq35 committed Oct 5, 2023
1 parent 433562a commit e82afbb
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion .env.development
Original file line number Diff line number Diff line change
@@ -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
1 change: 0 additions & 1 deletion src/components/building_list/building_list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
11 changes: 0 additions & 11 deletions src/components/map/map.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
}
Expand Down

0 comments on commit e82afbb

Please sign in to comment.