-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Web map tile service imagery provider #3270
Web map tile service imagery provider #3270
Conversation
I get strange behavior when I use this imagery provider. For instance in http://localhost:8080/Apps/Sandcastle/index.html?src=Imagery%20Layers%20Manipulation.html&label=Beginner changing the dropdown to USGS and unchecking all the options except tile coordinates and then zooming past 6 levels causes problems. Let me know if you have an idea why this is the case. Still to do in this pull request is to finish the deprecation process for Web map tile service imagery provider. Thanks! |
This could just be an issue with the data the service is returning, not the request Cesium is making. I am not 100% sure though. Can you please submit a separate issue about it? |
@@ -1,13 +0,0 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean to remove this?
In my recent update, I fixed the way the urlTemplate is constructed and completed the deprecation process for WebMapTileServiceImageryProvider. I listed it for deprecation in 1.19, does that sound right? When tested by hand, the map imagery shows up as expected (aka. the same way it shows up on cesiumjs.org currently). After these changes I'm still failing 5 tests in the spec, mostly the result of two separate problems. The first is that two tests expect to access the format by using 'provider.format' (seen here: https://github.com/tiffanylu/cesium/blob/webMapTileServiceImageryProvider/Specs/Scene/createWebMapTileServiceImageryProviderSpec.js#L223 and https://github.com/tiffanylu/cesium/blob/webMapTileServiceImageryProvider/Specs/Scene/createWebMapTileServiceImageryProviderSpec.js#L254). I believe that this issue should be resolved by removing those two line from the spec code. Another two tests fail because WebMapTileServiceImageryProvider provides an option for passing tileMatrixLabels which map labels to strings. As a result tests like this fail: Finally, the last test which fails is this: Expected function 'getTileCredits' to exist on WebMapTileServiceImageryProvider because it should implement interface ImageryProvider. I can't figure out why this fails because UrlTemplateImageryProvider does define the function getTileCredits: https://github.com/tiffanylu/cesium/blob/webMapTileServiceImageryProvider/Source/Scene/UrlTemplateImageryProvider.js#L447. Please let me know what you think I should do to solve these testing issues. Thanks! |
@adamdavidcole can you merge in master. There is probably a trivial conflict in CHANGES.md. |
Yes |
This is fine since it is a breaking change; However, please make sure that the KVP requests that use the |
I think you need to add support to |
Replace this test with a test like this: https://github.com/tiffanylu/cesium/blob/webMapTileServiceImageryProvider/Specs/Scene/createOpenStreetMapImageryProviderSpec.js#L34 |
@adamdavidcole thanks for your initial work on this; we're going to hold off for now. Hope you are having a great summer and thanks again for all your past contributions to Cesium! |
Created function createWebTileServiceImageryProvider which utilizes the generic UrlTemplateImageryProvider
@pjcozzi @TiffanyLu