Skip to content

Commit

Permalink
Merge pull request #393 from openaddresses/map-attribution-ordering
Browse files Browse the repository at this point in the history
Put attribution control at the bottom of the lower-right control stack
  • Loading branch information
iandees authored Jun 21, 2024
2 parents b660c97 + a310c68 commit 12075a0
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 12075a0

Please sign in to comment.