Skip to content

Commit

Permalink
catch osu operations
Browse files Browse the repository at this point in the history
  • Loading branch information
solderq35 committed Sep 14, 2023
1 parent da0d1b2 commit a73e3ac
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions src/components/map/map.vue
Original file line number Diff line number Diff line change
Expand Up @@ -570,18 +570,19 @@ console.log(res2[0][1]);
console.log( v )
var searchGroup = []
for ( let layer of Object.values( this.map._layers ) ) {
// console.log(layer)
if (
layer.feature &&
layer.feature.geometry &&
layer.feature.geometry.type === 'Polygon' &&
layer.feature.properties.name !== undefined
) {
// console.log( layer.feature.properties.name)
if ( layer.feature.properties.name.toLowerCase().includes( v.toLowerCase() ) ) {
searchGroup.push( layer )
console.log( layer )
if ( layer.feature && layer.feature.geometry && layer.feature.geometry.type === 'Polygon' ) {
if ( layer.feature.id === 'way/1100972272' ) {
layer.feature.properties.name = 'OSU Operations'
}
if ( layer.feature.properties.name !== undefined ) {
// console.log( layer.feature.properties.name)
if ( layer.feature.properties.name.toLowerCase().includes( v.toLowerCase() ) ) {
searchGroup.push( layer )
}
// searchGroup.push(layer)
}
// searchGroup.push(layer)
}
// console.log(realLayer)
// realLayer.bindTooltip('dfsdfdsd' ).openTooltip()
Expand Down

0 comments on commit a73e3ac

Please sign in to comment.