Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Change what counts as a Bing Imagery session #7729

Closed
lilleyse opened this issue Apr 9, 2019 · 1 comment
Closed

Change what counts as a Bing Imagery session #7729

lilleyse opened this issue Apr 9, 2019 · 1 comment

Comments

@lilleyse
Copy link
Contributor

lilleyse commented Apr 9, 2019

Some ion users may see a high number of Bing Imagery sessions despite not using Bing as their base layer. This can happen even if:

var viewer = new Cesium.Viewer('cesiumContainer');
viewer.imageryLayers.removeAll(false);
viewer.imageryLayers.addImageryProvider(Cesium.createTileMapServiceImageryProvider({
    url : Cesium.buildModuleUrl('Assets/Textures/NaturalEarthII')
}));

Viewer still creates a BingMapsImageryProvider under the hood which is enough to start the session. Is it possible to start the session only when the first tile is requested, or add a delay of some kind?

For anyone running into this problem, the best way to bypass Bing entirely is to pass the imagery provider to the viewer directly:

var viewer = new Cesium.Viewer('cesiumContainer', {
    imageryProvider : Cesium.createTileMapServiceImageryProvider({
        url : Cesium.buildModuleUrl('Assets/Textures/NaturalEarthII')
    })
});
@hpinkos
Copy link
Contributor

hpinkos commented Sep 19, 2019

Fixed in #7848

@hpinkos hpinkos closed this as completed Sep 19, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants