-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ Intégrer OpenStreetMap fourni par Protomaps #61
base: main
Are you sure you want to change the base?
Conversation
🔥 Remove Leva which was used for the demo
This reverts commit 599f7b5.
webapp/package.json
Outdated
@@ -3,17 +3,21 @@ | |||
"version": "0.1.0", | |||
"private": true, | |||
"scripts": { | |||
"dev": "next dev --turbopack", | |||
"dev": "next dev", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
une raison particulière ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tu as raison ! Il y avait un problème avec react-map-gl que j'avais besoin de personnaliser avec webpack. Après avoir changé la version, ce n'est plus nécessaire.
webapp/package.json
Outdated
"build": "next build", | ||
"start": "next start", | ||
"lint": "next lint" | ||
}, | ||
"dependencies": { | ||
"@duckdb/node-api": "^1.1.3-alpha.12", | ||
"maplibre-gl": "^5.0.1", | ||
"leva": "^0.10.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on va utiliser shadcn, on peut l'enlever ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
en tous cas, cela génère des conflits lors d'un npm install
webapp/app/config.ts
Outdated
export const MAPLIBRE_MAP = { | ||
protomaps: { | ||
// https://protomaps.com/api | ||
api_key: "707d8bc70b393fc0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On voudra utiliser une env variable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mis à jour dans 61e6975
Contexte
Auparavant, nous disposions des PR pour explorer le fond ou le type de fond des cartes que nous souhaitions utiliser :
Nous avons décidé d'utiliser OpenStreetMap fourni par Protomaps qui sert de fond de carte en utilisant PMTiles pour fournir une expérience de réseau fluide et aussi beaucoup d'options de personnalisation.
Changements