Skip to content

Commit

Permalink
fixes issue that causes non-effecting error in console from MapPanel.…
Browse files Browse the repository at this point in the history
…vue when searching an address with the L&I topic open, updates readme for release
  • Loading branch information
ajrothwell committed Nov 10, 2023
1 parent c991edd commit 75b56fb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 15 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ Travis will now run a build and publish to NPM.

## Release Notes

### 4.4.21 - 11/10/2023

* fixes issue that causes non-effecting error in console from MapPanel.vue when searching an address with the L&I topic open

### 4.4.20 - 11/10/2023

* fixes bug in store.js
Expand Down
33 changes: 18 additions & 15 deletions src/components/MapPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1289,11 +1289,14 @@ export default {
}
},
activeGeojsonForTopic(nextActiveGeojsonForTopic) {
// let nextGeojson = this.$store.state.sources.liBuildingFootprints.data.features.filter(function(item) {
let nextGeojson = this.$store.state.sources.liBuildingFootprints.data.filter(function(item) {
// console.log('in filter, item:', item, 'item.id:', item.id);
return item.attributes.BIN === nextActiveGeojsonForTopic;
});
let liBuildingFootprints = this.$store.state.sources.liBuildingFootprints.data;
let nextGeojson;
if (liBuildingFootprints) {
nextGeojson = this.$store.state.sources.liBuildingFootprints.data.filter(function(item) {
// console.log('in filter, item:', item, 'item.id:', item.id);
return item.attributes.BIN === nextActiveGeojsonForTopic;
});
}
// console.log('watch activeDorParcel is running, nextActiveDorParcel:', nextActiveDorParcel, 'nextGeojson:', nextGeojson);
if (nextGeojson[0]) {
// console.log('watch geojsonParcels is running, nextGeojson:', nextGeojson, 'nextGeojson[0].geojson:', nextGeojson[0].geojson);
Expand All @@ -1305,16 +1308,16 @@ export default {
}
},
activeLiBuilding(nextActiveLiBuilding) {
// let nextGeojson = this.$store.state.sources.liBuildingFootprints.data.features.filter(function(item) {
let nextGeojson = this.$store.state.sources.liBuildingFootprints.data.filter(function(item) {
// console.log('in filter, item:', item, 'item.id:', item.id);
return item.attributes.BIN === nextActiveLiBuilding;
});
// console.log('watch activeDorParcel is running, nextActiveDorParcel:', nextActiveDorParcel, 'nextGeojson:', nextGeojson);
// if (this.$store.map) {
// console.log('watch activeDorParcel is running, map.getStyle():', this.$store.map.getStyle(), 'map.getStyle().layers:', this.$store.map.getStyle().layers, 'nextGeojson:', nextGeojson);
// }
if (nextGeojson[0]) {
let liBuildingFootprints = this.$store.state.sources.liBuildingFootprints.data;
let nextGeojson;
if (liBuildingFootprints) {
nextGeojson = this.$store.state.sources.liBuildingFootprints.data.filter(function(item) {
// console.log('in filter, item:', item, 'item.id:', item.id);
return item.attributes.BIN === nextActiveLiBuilding;
});
}
if (nextGeojson && nextGeojson[0]) {
// console.log('watch geojsonParcels is running, nextGeojson:', nextGeojson, 'nextGeojson[0].geojson:', nextGeojson[0].geojson);
this.geojsonForActiveBuildingBoolean = true;
this.$data.geojsonForActiveBuildingSource.data.geometry.coordinates = nextGeojson[0].geometry.rings;
Expand Down

0 comments on commit 75b56fb

Please sign in to comment.