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

Add option to preserve user added layers when switching base maps #27

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

chriszrc
Copy link

No description provided.

@el
Copy link
Owner

el commented Feb 16, 2023

Hi, thank you for the PR. Can you please revert all unrelated changes like style changes?

@chriszrc
Copy link
Author

@el hmm, I'm guessing you mean the auto formatting by prettier? I would probably suggest you consider using prettier since it's becoming the de facto formatting option-

@el
Copy link
Owner

el commented Feb 16, 2023

You can create that as a separate pr. I am not against using a prettier. It just makes it hard to review the pr.

@vcardins
Copy link

vcardins commented Feb 16, 2023

@chriszrc Thanks for the initiative. Also, could you add an option to add a unique id for the style option button:

export type MapboxStyleDefinition = {
  id: string;
  title: string;
  uri: string | Style;
};

<button type="button" class="Satellite active" id="satellite" data-uri=""mapbox://styles/mapbox/satellite-v9"">Satellite

Thank you!!

@el
Copy link
Owner

el commented Feb 16, 2023

@chriszrc Thanks for the initiative. Also, could you add an option to add a unique id for the style option button:

export type MapboxStyleDefinition = {
  id: string;
  title: string;
  uri: string | Style;
};

<button type="button" class="Satellite active" id="satellite" data-uri=""mapbox://styles/mapbox/satellite-v9"">Satellite

Thank you!!

What is the use case for this?

@vcardins
Copy link

For automated testing purposes

@mmc1718
Copy link

mmc1718 commented Oct 9, 2023

This looks really useful. Is it ready to merge?

@arthurjgs
Copy link

Hi, can you merge this if there is no conflict ?

@vcardins
Copy link

vcardins commented Mar 1, 2024

@el Could you update the status of this PR?

@el
Copy link
Owner

el commented Mar 1, 2024

Unfortunately, the PR has used a prettier making all the code changes. Which makes it extremely hard to review. I asked the PR author to create a separate PR for prettier and only make the changes necessary in this PR but didn't hear back.

@vcardins
Copy link

vcardins commented Mar 6, 2024

Unfortunately, the PR has used a prettier making all the code changes. Which makes it extremely hard to review. I asked the PR author to create a separate PR for prettier and only make the changes necessary in this PR but didn't hear back.

It makes sense. I'm going to submit a PR with only the necessary changes.

@beniaminrychter
Copy link

Hello guys, any updates on that? 😊
This PR would be very helpful.

cc @vcardins

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.

6 participants