Skip to content

Commit

Permalink
Merge pull request #413 from openaddresses/add-back-coverage-source
Browse files Browse the repository at this point in the history
Add back the coverage layer that I accidentally deleted
  • Loading branch information
iandees authored Nov 20, 2024
2 parents b9af04c + b15a035 commit dca12db
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion api/web/src/components/util/Coverage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ export default {
container: this.$refs.map,
hash: "map",
style: 'https://api.protomaps.com/styles/v4/grayscale/en.json?key=' + res.protomaps_key,
}
opts.center = [0, 0];
Expand All @@ -125,6 +124,15 @@ export default {
map = tmpmap;
if (this.bbox) map.fitBounds(this.bbox);
map.addSource('coverage', {
type: 'vector',
tiles: [
String(window.stdurl('/api')) + '/map/{z}/{x}/{y}.mvt'
],
minzoom: 0,
maxzoom: 6
})
map.addSource('features', {
type: 'geojson',
data: JSON.parse(JSON.stringify(this.features))
Expand Down

0 comments on commit dca12db

Please sign in to comment.