Skip to content

Commit

Permalink
Corrected some typos in InfoClick component
Browse files Browse the repository at this point in the history
  • Loading branch information
sronveaux committed Sep 25, 2024
1 parent 83c4b5a commit a84a4e8
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/components/infoclick/InfoClickWin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
</template>

<script>
import ModuleCard from './../modulecore/ModuleCard';
import ModuleCard from '../modulecore/ModuleCard';
import { WguEventBus } from '../../WguEventBus.js';
import PropertyTable from './PropertyTable';
import CoordsTable from './CoordsTable';
Expand Down Expand Up @@ -125,18 +125,18 @@ export default {
*/
onMapClick (evt) {
const me = this;
me.features = []
me.features = [];
me.map.forEachFeatureAtPixel(evt.pixel,
(feature, layer) => {
if (layer) {
me.features.push([feature, layer])
me.features.push([feature, layer]);
}
});
// collect feature attributes --> PropertyTable
if (this.features.length !== 0) {
this.featureIdx = 0
this.numfeats = me.features.length
this.featureIdx = 0;
this.numfeats = me.features.length;
this.viewProps(this.featureIdx)
} else {
this.attributeData = null;
Expand All @@ -150,19 +150,19 @@ export default {
},
prevFeat () {
this.featureIdx -= 1
this.featureIdx -= 1;
if (this.featureIdx < 0) {
this.featureIdx = this.features.length - 1
this.featureIdx = this.features.length - 1;
}
this.viewProps(this.featureIdx)
this.viewProps(this.featureIdx);
},
nextFeat () {
this.featureIdx += 1
this.featureIdx += 1;
if (this.featureIdx > this.features.length - 1) {
this.featureIdx = 0
this.featureIdx = 0;
}
this.viewProps(this.featureIdx)
this.viewProps(this.featureIdx);
},
viewProps (idx) {
Expand All @@ -171,8 +171,8 @@ export default {
// do not show geometry property
delete props.geometry;
this.attributeData = props;
this.layerName = this.features[idx][1].get('name')
const lid = this.features[idx][1].get('lid')
this.layerName = this.features[idx][1].get('name');
const lid = this.features[idx][1].get('lid');
const correspondingInteraction = MapInteractionUtil.getSelectInteraction(this.map, lid);
Expand Down

0 comments on commit a84a4e8

Please sign in to comment.