Skip to content

Feat: save zoom and center parameters#65

Open
Instelce wants to merge 8 commits intomainfrom
feat/save-zoom-and-center-parameters
Open

Feat: save zoom and center parameters#65
Instelce wants to merge 8 commits intomainfrom
feat/save-zoom-and-center-parameters

Conversation

@Instelce
Copy link
Collaborator

Issue : #59

J'ai pu tester la PR de coordo dataforgoodfr/Coordonnees#33 et tous fonctionne.

if (!mapApiRef.current) {
try {
mapApiRef.current = createMap(containerSelector, STYLE_URL);
// console.log("Create map.", mapSettings);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove comment

"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"coordo": "github:dataforgoodfr/Coordonnees#main",
"coordo": "github:dataforgoodfr/Coordonnees#feat/init-map-options",
Copy link
Collaborator

Choose a reason for hiding this comment

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

To update when the PR is merged on Coordo side

});

// Update map settings
mapApiRef.current?.mapInstance.on("move", (event) => {
Copy link
Collaborator

@arnaudfnr arnaudfnr Feb 26, 2026

Choose a reason for hiding this comment

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

Ideally, we prefer never to use mapInstance. We made it accessible to not block the development process, but here I suggest we should think about a way to set this event listener through the API.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we could add a method "addEventListener" to the API

@Instelce Instelce requested a review from arnaudfnr February 28, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[D4T Frontend] Feature - Save the zoom and center parameters

2 participants