I don't want to use Ion in my project. In documentation i saw that BingMapsImageryProvider by default is provided through Cesium ion. To go back to the old default behavior with BingMaps my code should be like:
var viewer = new Cesium.Viewer('cesiumContainer', {
imageryProvider : new Cesium.BingMapsImageryProvider({
url : 'https://dev.virtualearth.net'
}),
geocoder : [
new Cesium.CartographicGeocoderService(),
new Cesium.BingMapsGeocoderService()
]
});
I've done all like in example, but warning is still there. Also i change geocoder to false. Nothing changed too.
What can be wrong with my code?
Thank you for any help.
Cesium.Ion.defaultAccessToken = null;
var viewer = new Cesium.Viewer('cesiumContainer', { imageryProvider: new Cesium.BingMapsImageryProvider({ url : 'https://dev.virtualearth.net', key: '<Your Key>', mapStyle: Cesium.BingMapsStyle.AERIAL_WITH_LABELS }), baseLayerPicker : false});Your latest example with code fixed my warning, many thanks!!
But when i added terrainProvider error appeared again))
my code looks like:
Cesium.Ion.defaultAccessToken = null;
var viewer = new Cesium.Viewer('cesiumContainer', {
imageryProvider: new Cesium.BingMapsImageryProvider({
url : 'https://dev.virtualearth.net',
key: '<KEY>',
mapStyle: Cesium.BingMapsStyle.AERIAL
}),
baseLayerPicker : false,
geocoder : [
new Cesium.CartographicGeocoderService(),
new Cesium.BingMapsGeocoderService({key:'<KEY>'})