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

SingleTileImageryProvider crossing 180 degrees longitude does not render #2195

Open
mramato opened this issue Oct 13, 2014 · 3 comments
Open

Comments

@mramato
Copy link
Contributor

mramato commented Oct 13, 2014

I'm guessing this is a more general problem than with just SingleTileImageryProvider, but it's the easiest way to reproduce the issue.

Sandcastle example

var viewer = new Cesium.Viewer('cesiumContainer', {
    baseLayerPicker : false
});

viewer.scene.imageryLayers.addImageryProvider(new Cesium.SingleTileImageryProvider({
    url : '../images/Cesium_Logo_Color.jpg',
    rectangle : Cesium.Rectangle.fromDegrees(160, 60, -160, 78)
}));

viewer.entities.add({
    polyline : {
        positions : Cesium.Cartesian3.fromDegreesArray([-180, 80,
                                                        -180, 20]),
        width : 1
    }
});
@bagnell
Copy link
Contributor

bagnell commented Apr 15, 2015

This is broken again. Rectangle.intersection does not handle intersection with Rectangle.MAX_VALUE properly. Also ImageryLayer._createTileImagerySkeletons needs to not assume that west is strictly less than east for all rectangles.

@mramato
Copy link
Contributor Author

mramato commented Apr 15, 2015

Could the MAX_VALUE issue be related to #2624?

@bagnell
Copy link
Contributor

bagnell commented Apr 15, 2015

I don't think so. I believe that issue is with Cesium.Math.convertLongitudeRange and this one is definitely with Rectangle.intersection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants