Skip to content

Latest commit

 

History

History

AttributionControl

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

An AttributionControl control presents the map's attribution information.

import React from 'react';
import MapGL, { AttributionControl } from '@urbica/react-map-gl';
import 'mapbox-gl/dist/mapbox-gl.css';

<MapGL
  style={{ width: '100%', height: '400px' }}
  mapStyle='mapbox://styles/mapbox/light-v9'
  accessToken={MAPBOX_ACCESS_TOKEN}
  latitude={37.78}
  longitude={-122.41}
  zoom={11}
  attributionControl={false}
>
  <AttributionControl
    compact={false}
    position='bottom-right'
    customAttribution='Custom attribution'
  />
</MapGL>;