Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
fix: add OSM attribution (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon authored Apr 11, 2022
1 parent ad781cd commit c61edc9
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 31 deletions.
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,54 +14,54 @@
"@dataesr/react-dsfr": "0.9.9",
"@faker-js/faker": "^6.0.0-alpha.6",
"@sentry/nextjs": "^6.17.9",
"@socialgouv/bootstrap.core": "^0.2.1",
"@socialgouv/matomo-next": "^1.3.0",
"@types/sequelize": "^4.28.11",
"@typescript-eslint/eslint-plugin": "^5.11.0",
"axios": "^0.26.0",
"bcryptjs": "^2.4.3",
"cron": "^1.8.2",
"dotenv": "^16.0.0",
"got": "12.0.3",
"graphql": "^16.3.0",
"graphql-request": "^4.0.0",
"graphql": "^16.3.0",
"helmet": "^5.0.2",
"jest-dev-server": "^6.0.3",
"joi": "^17.6.0",
"leaflet": "^1.7.1",
"next": "12.0.7",
"next-auth": "^4.2.1",
"next": "12.0.7",
"nodemailer": "^6.7.2",
"p-limit": "3.1.0",
"pg": "^8.7.3",
"pg-hstore": "^2.3.4",
"pg": "^8.7.3",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-leaflet": "^3.2.5",
"sanitize-html": "^2.7.0",
"sequelize": "^6.16.1",
"sequelize-cli": "^6.4.1",
"sequelize": "^6.16.1",
"styled-components": "^5.3.3",
"tough-cookie": "^4.0.0",
"ts-node": "^10.5.0",
"typescript-eslint": "^0.0.1-alpha.0"
"ts-node": "^10.5.0"
},
"devDependencies": {
"@commitlint/cli": "^16.2.1",
"@commitlint/config-conventional": "^16.2.1",
"@socialgouv/eslint-config-react": "^1.104.0",
"@socialgouv/eslint-config-recommended": "^1.104.0",
"@types/jest": "^27.4.0",
"@types/leaflet": "^1.7.9",
"@types/mocha": "^9.1.0",
"@types/react": "^17.0.39",
"@types/sequelize": "^4.28.11",
"@typescript-eslint/eslint-plugin": "^5.11.0",
"cypress": "^9.4.1",
"eslint": "^8.9.0",
"eslint-config-next": "^12.0.10",
"eslint-plugin-import": "^2.25.4",
"eslint": "^8.9.0",
"jest-dev-server": "^6.0.3",
"jest": "^27.5.1",
"lint-staged": "^12.3.3",
"prettier": "^2.5.1",
"sinon": "^13.0.1",
"typescript-eslint": "^0.0.1-alpha.0",
"typescript": "^4.5.5"
},
"license": "MIT",
Expand Down
7 changes: 5 additions & 2 deletions src/components/Directory/PsychologistsMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function MarkerWithIcon({
selectedPsychologist,
}) {
const [icon, setIcon] = useState(yellowIcon);
const [zindex, setZindex] = useState(yellowIcon);
const [zindex, setZindex] = useState(1);
useEffect(() => {
if (selectedPsychologist === psychologist.id) {
setIcon(orangeIcon);
Expand Down Expand Up @@ -79,7 +79,10 @@ const PsychologistsMap = ({
style={{ height: "100%", minHeight: "300px", width: "100%" }}
>
<ChangeView center={mapCenter} mapZoom={mapZoom} />
<TileLayer url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" />
<TileLayer
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
attribution='&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
/>
{psychologists
.filter((psychologist) => psychologist.coordinates)
.map((psychologist) => (
Expand Down
30 changes: 12 additions & 18 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1187,19 +1187,6 @@
resolved "https://registry.yarnpkg.com/@sinonjs/text-encoding/-/text-encoding-0.7.1.tgz#8da5c6530915653f3a1f38fd5f101d8c3f8079c5"
integrity sha512-+iTbntw2IZPb/anVDbypzfQa+ay64MW0Zo8aJ8gZPWMMK6/OubMVb6lUPMagqjOPnmtauXnFCACVl3O7ogjeqQ==

"@socialgouv/bootstrap.core@^0.2.1":
version "0.2.1"
resolved "https://registry.yarnpkg.com/@socialgouv/bootstrap.core/-/bootstrap.core-0.2.1.tgz#f4e5b67a3ae9e3bc3deeb3049e90f1c639ce4a2f"
integrity sha512-xS0pId6O7Z2HxSYGh1fZg6xG5tGk43PKAVYvv1eDlZAMjGUFlqzwSnu5vcv0QQdz7lczZTeKhq4+os790N6n8g==
dependencies:
"@socialgouv/bootstrap.tokens" "^0.2.0"
bootstrap "^4.4.1"

"@socialgouv/bootstrap.tokens@^0.2.0":
version "0.2.0"
resolved "https://registry.yarnpkg.com/@socialgouv/bootstrap.tokens/-/bootstrap.tokens-0.2.0.tgz#ee1aa1df50b0b18dba0b645610d862fdb312d5b3"
integrity sha512-bBN7oGhmYGA61gyWTqTwSXh3YWkN1RWlMFAfi3NQa6L8ziJsSCgN5yk4FVpBq6uRFDQz061PgH8mlyGAyxwVqg==

"@socialgouv/eslint-config-react@^1.104.0":
version "1.104.0"
resolved "https://registry.yarnpkg.com/@socialgouv/eslint-config-react/-/eslint-config-react-1.104.0.tgz#12040204f3d3a55eb5a4b8ffe50c94bc5d803f51"
Expand Down Expand Up @@ -1327,6 +1314,11 @@
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.39.tgz#e177e699ee1b8c22d23174caaa7422644389509f"
integrity sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==

"@types/geojson@*":
version "7946.0.8"
resolved "https://registry.yarnpkg.com/@types/geojson/-/geojson-7946.0.8.tgz#30744afdb385e2945e22f3b033f897f76b1f12ca"
integrity sha512-1rkryxURpr6aWP7R786/UQOkJ3PcpQiWkAXBmdWc7ryFWqN6a4xfK7BtjXvFBKO9LjQ+MWQSWxYeZX1OApnArA==

"@types/graceful-fs@^4.1.2":
version "4.1.5"
resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.5.tgz#21ffba0d98da4350db64891f92a9e5db3cdb4e15"
Expand Down Expand Up @@ -1383,6 +1375,13 @@
dependencies:
"@types/node" "*"

"@types/leaflet@^1.7.9":
version "1.7.9"
resolved "https://registry.yarnpkg.com/@types/leaflet/-/leaflet-1.7.9.tgz#7993d34f14cfa88c45b3d490daba39a3a1be9a2b"
integrity sha512-H8vPgD49HKzqM41ArHGZM70g/tfhp8W+JcPxfnF+5H/Xvp+xiP+KQOUNWU8U89fqS1Jj3cpRY/+nbnaHFzwnFA==
dependencies:
"@types/geojson" "*"

"@types/lodash@*":
version "4.14.178"
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.178.tgz#341f6d2247db528d4a13ddbb374bcdc80406f4f8"
Expand Down Expand Up @@ -2051,11 +2050,6 @@ bn.js@^5.0.0, bn.js@^5.1.1:
resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-5.2.0.tgz#358860674396c6997771a9d051fcc1b57d4ae002"
integrity sha512-D7iWRBvnZE8ecXiLj/9wbxH7Tk79fAh8IHaTNq1RWRixsS02W+5qS+iE9yq6RYl0asXx5tw0bLhmT5pIfbSquw==

bootstrap@^4.4.1:
version "4.6.1"
resolved "https://registry.yarnpkg.com/bootstrap/-/bootstrap-4.6.1.tgz#bc25380c2c14192374e8dec07cf01b2742d222a2"
integrity sha512-0dj+VgI9Ecom+rvvpNZ4MUZJz8dcX7WCX+eTID9+/8HgOkv3dsRzi8BGeZJCQU6flWQVYxwTQnEZFrmJSEO7og==

brace-expansion@^1.1.7:
version "1.1.11"
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"
Expand Down

0 comments on commit c61edc9

Please sign in to comment.