From a310c68b4ff5700d6c01dfe3aa7a1371da64072e Mon Sep 17 00:00:00 2001 From: Ian Dees Date: Thu, 20 Jun 2024 21:40:18 -0500 Subject: [PATCH] Change ordering of controls so the attribution is at the bottom of the stack --- api/web/src/components/job/JobMap.vue | 2 +- api/web/src/components/util/Coverage.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/web/src/components/job/JobMap.vue b/api/web/src/components/job/JobMap.vue index 991de16d..7214cd5e 100644 --- a/api/web/src/components/job/JobMap.vue +++ b/api/web/src/components/job/JobMap.vue @@ -71,10 +71,10 @@ export default { }); - tmpmap.addControl(new mapgl.NavigationControl(), 'bottom-right'); tmpmap.addControl(new mapgl.AttributionControl({ customAttribution: '© Mapbox | © OpenStreetMap Contributors' })); + tmpmap.addControl(new mapgl.NavigationControl(), 'bottom-right'); tmpmap.once('load', () => { map = tmpmap; diff --git a/api/web/src/components/util/Coverage.vue b/api/web/src/components/util/Coverage.vue index d6312163..7468862e 100644 --- a/api/web/src/components/util/Coverage.vue +++ b/api/web/src/components/util/Coverage.vue @@ -153,10 +153,10 @@ export default { opts.zoom = 0; const tmpmap = new mapgl.Map(opts); - tmpmap.addControl(new mapgl.NavigationControl(), 'bottom-right'); tmpmap.addControl(new mapgl.AttributionControl({ customAttribution: '© Mapbox | © OpenStreetMap Contributors' })); + tmpmap.addControl(new mapgl.NavigationControl(), 'bottom-right'); tmpmap.once('idle', () => { map = tmpmap; if (this.bbox) map.fitBounds(this.bbox);