Скрыть Загрузка плитки анимации наложения Bing V8 - PullRequest
0 голосов
/ 09 ноября 2018

Есть ли способ скрыть наложение анимации загрузки плитки на Bing V8? Пожалуйста, помогите.

Loading tile animation overlay

1 Ответ

0 голосов
/ 20 ноября 2018

Установите для свойства loadingScreen анимированного слоя листов пользовательское наложение, которое ничего не отображает. Попробуйте это:

//Define a custom overlay class that inherits from the CustomOverlay class.
MyCustomOverlay.prototype = new Microsoft.Maps.CustomOverlay();

//Define a constructor for the custom overlay class.
function MyCustomOverlay() {
}

MyCustomOverlay.prototype.onAdd = function () {
    //Logic to perform when adding overlay to map.
};

MyCustomOverlay.prototype.onLoad = function () {
    //Logic to perform after overlay has been added to the map.
};

MyCustomOverlay.prototype.onRemove = function () {
    //Logic to perform when overlay has been removed from the map.
};

//Implement the new custom overlay class.
var overlay = new MyCustomOverlay();

var animatedLayer = new Microsoft.Maps.AnimatedTileLayer({ mercator: tileSources, loadingScreen: overlay});
map.layers.insert(animatedLayer);
...