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

UI for custom tokens for Stamen/Stadia maps #77

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

Conversation

paulschuberth
Copy link

@paulschuberth paulschuberth commented Oct 5, 2023

First of all thank you for this fun application!

This PR goal is to resolve #76 by providing a user interface to provide an API key for the maps provided by Stamen/Stadia.

As of right now it's still pretty rough and will likely need some polishing. I am not familiar with the value bindings in TTPreferencesWindow.xib. The current solution copies the approach of the other settings and hopes for the best. Maybe some form of validation is appropriate here?

I am very much open to suggestions and ideas. My Obj-C got a bit rusty and I have so far not worked with AppKit.

Strictly speaking this is a breaking change as it requires mroe recent
versions of Xcode
@tomtaylor
Copy link
Owner

tomtaylor commented Oct 7, 2023

Thanks @paulschuberth, this looks like a great start. I think we'd need to do a few things to make this suitable for normal users:

  1. Explain what the Stadia token is, and how to get one - some kind of popup from the preferences screen would be ideal
  2. Prevent selection of the Stadia/Stamen maps until the user has entered one
  3. Provide some kind of visual error if the requests error because of an invalid token - we have an error state in the menu dropdown when the map can't load, so perhaps something there?

I appreciate that might be biting off more than you want to on this!

@paulschuberth
Copy link
Author

Very valid points! I am happy to give it a try and will update here, once I have something I think is worth reviewing again 👍🏻

@paulschuberth
Copy link
Author

Hi @tomtaylor , thanks again for your review last time around. I believe to have addressed your suggestions. Especially point (2), preventing selection of Stamen maps without a token, proved to be a bit of a challenge.

Looking forward to hear/read what you think about it.

@paulschuberth paulschuberth marked this pull request as ready for review October 14, 2023 20:27
@NortonTech3D
Copy link

Hey Paul, just wondering if this ever got merged into the main branch?

@paulschuberth
Copy link
Author

paulschuberth commented Jun 30, 2024

Hey @NortonTech3D, not to my knowledge, no

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.

Stamen Maps tiles moving to Stadia
3 participants