Skip to content

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

Open
chriszrc wants to merge 5 commits into
el:masterfrom
chriszrc:master
Open

Add option to preserve user added layers when switching base maps#27
chriszrc wants to merge 5 commits into
el:masterfrom
chriszrc:master

Conversation

@chriszrc

Copy link
Copy Markdown

No description provided.

@el

el commented Feb 16, 2023

Copy link
Copy Markdown
Owner

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

@chriszrc

Copy link
Copy Markdown
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

el commented Feb 16, 2023

Copy link
Copy Markdown
Owner

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

vcardins commented Feb 16, 2023

Copy link
Copy Markdown

@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

el commented Feb 16, 2023

Copy link
Copy Markdown
Owner

@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
Copy Markdown

For automated testing purposes

@mmc1718

mmc1718 commented Oct 9, 2023

Copy link
Copy Markdown

This looks really useful. Is it ready to merge?

@arthurjgs

Copy link
Copy Markdown

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

@vcardins

vcardins commented Mar 1, 2024

Copy link
Copy Markdown

@el Could you update the status of this PR?

@el

el commented Mar 1, 2024

Copy link
Copy Markdown
Owner

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

vcardins commented Mar 6, 2024

Copy link
Copy Markdown

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
Copy Markdown

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

cc @vcardins

@samYnsat

Copy link
Copy Markdown

Hi, guys

Any updates on the possibility to do this pull request or the one stated by @vcardins ? I am using this code from @chriszrc repository and is working great.

Cheers!

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.

8 participants