-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Update imagery providers to use UrlTemplateImageryProvider #2814
Comments
@kring could you make a list of imagery providers that could be implemented using |
It should be possible to implement all of them in terms of These are already done:
These should be really easy:
These may be more complicated:
These don't make a lot of sense to change:
We'll need to add a |
Thanks @kring. @TiffanyLu @adamdavidcole this could be a nice project after the KML examples depending on your interests. It would only be a few weeks, not the rest of the semester. |
@pjcozzi when you say KML examples, did you mean CZML or did you want us to do additional work with KML support? |
Just CZML. That is a typo. |
@kring do you think this is still worth someone pursuing for any of the remaining types? |
Nah, not much to be gained IMO. I'll close this. |
It is kind of weird and inconsistent that we use functions for some types classes for others. I know perfect is the enemy of the good and all that, but it makes our API harder to use. |
Seconded. Consistency is key for API usability. Maybe we could rework |
Sure, I can see that the inconsistency makes the API harder to use. So, @mramato and @hpinkos, are you suggesting that we move to an all-function API? So users never do So maybe we should be all classes? It's worth revisiting why we have functions - rather than classes - for OSM and TMS in the first place. There were basically two arguments for it:
So if we accept point 1, we might also say that the usability point is pretty much moot because most people will use Point 2 could be addressed with @hpinkos's suggestion: inherit from TL;DR: this issue should be closed. If there's something specific you want to see happen with the TMS and OSM functions (or all the other imagery providers maybe?) then write an issue to say that. This one is only talking about changing the way the imagery providers are implemented, which is totally orthogonal to the public API. |
No description provided.
The text was updated successfully, but these errors were encountered: