Skip to content

Commit

Permalink
Lint JS
Browse files Browse the repository at this point in the history
  • Loading branch information
frodrigo committed May 26, 2024
1 parent 3114c5f commit 6616788
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions web/src/pages/map/map.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ export default Vue.extend({
mounted(): void {
// Map
const map = this.map = new Map({
const map = (this.map = new Map({
container: 'map',
center: [this.mapState.lon, this.mapState.lat],
zoom: this.mapState.zoom,
style: glStyle,
hash: 'loc',
})
}))
this.$emit('set-map', map)
map.addControl(new NavigationControl(), 'top-left')
map.addControl(new ScaleControl())
Expand Down Expand Up @@ -168,8 +168,12 @@ export default Vue.extend({
.map(([k, v]) => encodeURIComponent(k) + '=' + encodeURIComponent(v))
.join('&')
this.map.getSource('markers').setTiles([API_URL + `/api/0.3/issues/{z}/{x}/{y}.mvt?${query}`])
this.map.getSource('heatmap').setTiles([API_URL + `/api/0.3/issues/{z}/{x}/{y}.heat.mvt?${query}`])
this.map
.getSource('markers')
.setTiles([API_URL + `/api/0.3/issues/{z}/{x}/{y}.mvt?${query}`])
this.map
.getSource('heatmap')
.setTiles([API_URL + `/api/0.3/issues/{z}/{x}/{y}.heat.mvt?${query}`])
},
},
})
Expand Down

0 comments on commit 6616788

Please sign in to comment.