Skip to content

Commit b39af10

Browse files
committed
Improve attributions
1 parent 0f1fcb1 commit b39af10

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/client/components/facet_results/LeafletMap.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ import markerIconRed from '../../img/markers/marker-icon-red.png'
3737
import markerIconOrange from '../../img/markers/marker-icon-orange.png'
3838
import markerIconYellow from '../../img/markers/marker-icon-yellow.png'
3939

40+
import mapboxLogo from '../../img/logos/mapbox-logo-white.png'
41+
4042
// const buffer = lazy(() => import('@turf/buffer'))
4143
import buffer from '@turf/buffer'
4244

@@ -265,7 +267,7 @@ class LeafletMap extends React.Component {
265267

266268
// Base layer(s)
267269
const mapboxBaseLayer = L.tileLayer(`https://api.mapbox.com/styles/v1/mapbox/${mapboxStyle}/tiles/{z}/{x}/{y}?access_token=${mapboxAccessToken}`, {
268-
attribution: '&copy; <a href="https://www.mapbox.com/map-feedback/" target="_blank" rel="noopener">Mapbox</a> &copy; <a href="http://osm.org/copyright" target="_blank" rel="noopener">OpenStreetMap</a> contributors',
270+
attribution: '&copy; <a href="https://www.mapbox.com/map-feedback/" target="_blank" rel="noopener">Mapbox</a> &copy; <a href="http://osm.org/copyright" target="_blank" rel="noopener">OpenStreetMap</a> contributors <strong><a href="https://www.mapbox.com/map-feedback/" target="_blank">Improve this map</a></strong>',
269271
tileSize: 512,
270272
zoomOffset: -1
271273
})
@@ -1002,6 +1004,16 @@ class LeafletMap extends React.Component {
10021004
height: '100%'
10031005
}}
10041006
>
1007+
<Box
1008+
component='img'
1009+
src={mapboxLogo}
1010+
sx={{
1011+
height: 20,
1012+
ml: 6,
1013+
mt: 1,
1014+
bottom: 1
1015+
}}
1016+
/>
10051017
{(this.props.fetching ||
10061018
(this.props.showExternalLayers && this.props.leafletMapState.fetching)) &&
10071019
<Box

0 commit comments

Comments
 (0)