Skip to content

Commit

Permalink
Fixed building search name discrepancy
Browse files Browse the repository at this point in the history
  • Loading branch information
s-egge committed Dec 5, 2023
1 parent 39556c9 commit 3a61163
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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=http://localhost:3000
VUE_APP_ROOT_API=https://api.sustainability.oregonstate.edu/v2/energy
VUE_APP_HOST_ADDRESS=http://localhost:8080
6 changes: 2 additions & 4 deletions src/components/map/map.vue
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export default {
this.polyClick( e.target.feature.properties.id, e.target.feature, layer.getBounds().getCenter() )
} )
layer.on( 'mouseover', e => {
if ( !e.target.setStyle ) return
if ( !e.target.setStyle ) return
e.target.oldStyle = {
fillColor: e.target.options.fillColor,
color: e.target.options.color
Expand Down Expand Up @@ -634,9 +634,7 @@ export default {
var searchGroup = []
for ( let layer of Object.values( this.map._layers ) ) {
if ( layer.feature && layer.feature.geometry && layer.feature.geometry.type === 'Polygon' ) {
if ( layer.feature.id === 'way/1100972272' ) {
layer.feature.properties.name = 'OSU Operations'
}
layer.feature.properties.name = this.$store.getters['map/building']( layer.feature.properties.id ).name
if ( layer.feature.properties.name !== undefined ) {
if ( layer.feature.properties.name.toLowerCase().includes( v.toLowerCase() ) ) {
Expand Down

0 comments on commit 3a61163

Please sign in to comment.