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

Replace createSomeImageryProvider functions with SomeImageryProvider class #6203

Merged
merged 15 commits into from
Sep 18, 2019

Conversation

hpinkos
Copy link
Contributor

@hpinkos hpinkos commented Feb 9, 2018

Fixes #4812

This has been a pet peeve of mine for a while so I wanted to take 5 minutes to fix it.

  • createOpenStreetMapImageryProvider -> OpenStreetMapImageryProvider
  • createTileMapServiceImageryProvider -> TileMapServiceImageryProvider
  • Instead of using createSomeImageryProvider to return an instance of UrlTemplateImageryProvider, the SomeImageryProvider class inherits from UrlTemplateImageryProvider.
  • No code changes or refactoring other than moving some of the TileMapServiceImageryProvider functions onto prototype

createTileMapServiceImageryProvider -> TileMapServiceImageryProvider
@cesium-concierge
Copy link

Signed CLA is on file.

@hpinkos, thanks for the pull request! Maintainers, we have a signed CLA from @hpinkos, so you can review this at any time.


I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome.

🌍 🌎 🌏

@cesium-concierge
Copy link

Thanks again for the pull request!

Looks like this pull request hasn't been updated in 30 days since I last commented.

To keep things tidy should this be closed? Perhaps keep the branch and submit an issue?

I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome.

🌍 🌎 🌏

@OmarShehata
Copy link
Contributor

I just ran into a dead link related to this:

https://cesiumjs.org/tutorials/Imagery-Layers-Tutorial/#imagery-providers

This links to:

https://cesiumjs.org/Cesium/Build/Documentation/TileMapServiceImageryProvider.html

Which doesn't exist yet, but it sounds like it will with this PR. Are we still planning on merging this @hpinkos ?

@hpinkos
Copy link
Contributor Author

hpinkos commented Dec 5, 2018

@OmarShehata I would love to get this merged, but it's not really a priority.

TileMapServiceImageryProvider did exist a long time ago, then we made a bad decision and replaced it with the createTileMapServiceImageryProvider function, and I want to change it back so our API is more consistent.

For now, just change the doc to createTileMapServiceImageryProvider

@cesium-concierge
Copy link

Thanks again for your contribution @hpinkos!

No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy?

I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with @cesium-concierge stop. If you want me to start again, just delete the comment.


I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome.

🌍 🌎 🌏

@cesium-concierge
Copy link

Thanks again for your contribution @hpinkos!

No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy?

I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with @cesium-concierge stop. If you want me to start again, just delete the comment.

@cesium-concierge
Copy link

Thanks again for your contribution @hpinkos!

No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy?

I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with @cesium-concierge stop. If you want me to start again, just delete the comment.

4 similar comments
@cesium-concierge
Copy link

Thanks again for your contribution @hpinkos!

No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy?

I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with @cesium-concierge stop. If you want me to start again, just delete the comment.

@cesium-concierge
Copy link

Thanks again for your contribution @hpinkos!

No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy?

I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with @cesium-concierge stop. If you want me to start again, just delete the comment.

@cesium-concierge
Copy link

Thanks again for your contribution @hpinkos!

No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy?

I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with @cesium-concierge stop. If you want me to start again, just delete the comment.

@cesium-concierge
Copy link

Thanks again for your contribution @hpinkos!

No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy?

I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with @cesium-concierge stop. If you want me to start again, just delete the comment.

@cesium-concierge
Copy link

Thanks again for your contribution @hpinkos!

No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy?

I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with @cesium-concierge stop. If you want me to start again, just delete the comment.

@hpinkos
Copy link
Contributor Author

hpinkos commented Sep 18, 2019

@mramato ready for review

@hpinkos
Copy link
Contributor Author

hpinkos commented Sep 18, 2019

Or @OmarShehata if you have a chance to review this first, please do =)

@mramato
Copy link
Contributor

mramato commented Sep 18, 2019

Looks good, I'll merge as soon as its green

@thw0rted
Copy link
Contributor

I just noticed that this removed create*ImageryProvider but missed createWorldImagery and createWorldTerrain. Was that intentional?

@mramato
Copy link
Contributor

mramato commented Feb 25, 2020

Yes, createWorldImagery and createWorldTerrain are helper functions that are a proxy to create whatever the default Cesium imagery/terrain are. They are not Imagery/Terrain providers in and of themselves.

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.

Imagery provider API consistency
5 participants