Skip to content

Commit

Permalink
Change ordering of controls so the attribution is at the bottom of th…
Browse files Browse the repository at this point in the history
…e stack
  • Loading branch information
iandees committed Jun 21, 2024
1 parent b660c97 commit a310c68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/web/src/components/job/JobMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ export default {
});
tmpmap.addControl(new mapgl.NavigationControl(), 'bottom-right');
tmpmap.addControl(new mapgl.AttributionControl({
customAttribution: '© <a href="https://www.mapbox.com/about/maps/" target="_blank">Mapbox</a> | © <a href="https://www.openstreetmap.org/about/" target="_blank">OpenStreetMap</a> Contributors'
}));
tmpmap.addControl(new mapgl.NavigationControl(), 'bottom-right');
tmpmap.once('load', () => {
map = tmpmap;
Expand Down
2 changes: 1 addition & 1 deletion api/web/src/components/util/Coverage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: '© <a href="https://www.mapbox.com/about/maps/" target="_blank">Mapbox</a> | © <a href="https://www.openstreetmap.org/about/" target="_blank">OpenStreetMap</a> Contributors'
}));
tmpmap.addControl(new mapgl.NavigationControl(), 'bottom-right');
tmpmap.once('idle', () => {
map = tmpmap;
if (this.bbox) map.fitBounds(this.bbox);
Expand Down

0 comments on commit a310c68

Please sign in to comment.