Skip to content
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

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

hsunpei
Copy link

@hsunpei hsunpei commented Feb 23, 2025

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.

image

Changements

  • Intégration de react-map-gl
  • Utiliser OpenStreetMap fourni par l'API de Protomap

@hsunpei hsunpei changed the title Osm protomaps ✨ Intégrer OpenStreetMap fourni par Protomaps Feb 23, 2025
@@ -3,17 +3,21 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev --turbopack",
"dev": "next dev",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

une raison particulière ?

Copy link
Author

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.

"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",
Copy link
Contributor

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 ?

Copy link
Contributor

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

export const MAPLIBRE_MAP = {
protomaps: {
// https://protomaps.com/api
api_key: "707d8bc70b393fc0",
Copy link
Contributor

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

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mis à jour dans 61e6975

@hsunpei hsunpei marked this pull request as ready for review February 23, 2025 20:22
@hsunpei hsunpei requested a review from jereze February 23, 2025 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants