Skip to content

Commit

Permalink
add attribution to map
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthvik129 committed Sep 24, 2024
1 parent 96e9c92 commit f2472f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/opub-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "opub-ui",
"description": "OPub UI Library",
"version": "0.3.37",
"version": "0.3.38",
"private": false,
"license": "MIT",
"author": "CivicDataLab <tech@civicdatalab.in>",
Expand Down
7 changes: 7 additions & 0 deletions packages/opub-ui/src/components/MapChart/MapChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,13 @@ const Map = ({
setSelectedLayer={setLayer}
/>
<TileLayer
attribution='&copy;<a href="https://www.mapbox.com/about/maps/">Mapbox</a> &copy;
<a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>
<strong
><a href="https://labs.mapbox.com/contribute/" target="_blank"
>Improve this map</a
></strong
>'
maxZoom={maxZoom}
minZoom={minZoom}
url={layers[selectedLayer]}
Expand Down

0 comments on commit f2472f2

Please sign in to comment.