-
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
Imagery provider API consistency #4812
Comments
Worth a try since this is a simple case; I don't think inheritance will make it out of control. The doc will need to be duplicated though, right? |
JSDoc supports doc inheritance via the inherritdoc tag. http://usejsdoc.org/tags-inheritdoc.html When we started Cesium we were concerned about inheritance and performance; but I'm not sure those concerns are valid any longer. We should consider getting more aggressive about inheritance in the future and making out interfaces actual base instances. |
Did this ever go anywhere? Also, createOpenStreetMapImageryProvider is maybe the only place that takes a URL as a string, not a Resource, and is thus completely impossible to load through a proxy. |
@thw0rted I opened a PR a while ago but it hasn't been a priority for us to review and merge it #6203 If |
From #2814, @mramato:
I think we should change
createOpenStreetMapImageryProvider
andcreateTileMapServiceImageryProvider
back into classes so they match the other imagery provider types. They could inherit fromUrlTemplateImageryProvider
so we don't have to worry about introducing more duplicate code.The text was updated successfully, but these errors were encountered: