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

GroundPrimitive polygon disappears when zooming out #4231

Closed
hpinkos opened this issue Aug 24, 2016 · 2 comments
Closed

GroundPrimitive polygon disappears when zooming out #4231

hpinkos opened this issue Aug 24, 2016 · 2 comments

Comments

@hpinkos
Copy link
Contributor

hpinkos commented Aug 24, 2016

Reported on the forum https://groups.google.com/forum/?hl=en#!topic/cesium-dev/-QMn8KdVEhw

var viewer = new Cesium.Viewer('cesiumContainer');
var cesiumTerrainProviderMeshes = new Cesium.CesiumTerrainProvider({
    url : 'https://assets.agi.com/stk-terrain/world',
    requestWaterMask : true,
    requestVertexNormals : true
});
viewer.terrainProvider = cesiumTerrainProviderMeshes;


function drawPolygon() {
    var e = viewer.entities.add({
                polygon : {
                    hierarchy : {
                        positions: [new Cesium.Cartesian3.fromDegrees(-80.52240492379808,26.07276605035512),
                                    new Cesium.Cartesian3.fromDegrees(-80.38142436812922,26.072221561466225),
                                    new Cesium.Cartesian3.fromDegrees(-80.3813686168645,26.08386721144594),
                                    new Cesium.Cartesian3.fromDegrees(-80.52234917227406,26.084411700334833)]
                    },
                    material : Cesium.Color.BLUE.withAlpha(0.5)
                }
            });


    viewer.zoomTo(e);}


drawPolygon();
@bagnell
Copy link
Contributor

bagnell commented Aug 24, 2016

This is either a duplicate of or related to #4161.

@hpinkos
Copy link
Contributor Author

hpinkos commented Aug 24, 2016

Good call @bagnell, looks like the same problem

@hpinkos hpinkos closed this as completed Aug 24, 2016
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

2 participants