Почему полигон не рисует после вызова context.stroke()
в функциях Executor.prototype.execute_
?(ol / render / canvas / Executor.js) Только после вызова
_this.animationDelay_ = function () {
this.animationDelayKey_ = undefined;
this.renderFrame_ (Date.now ());
} .bind (_this);
из класса PluggableMap (ol / PluggableMap.js) полигон рисуется.Это как-то связано с кэшированием в браузере?Вызывает ли функция this.animationDelay
событие перерисовки?Каков механизм рисования в Oponlayers?
Я использую Openlayers-5 Я использую отладку в браузере Chrome Я собираю код через Webpack Я запускаю через webpack-dev-server http://localhost:3000/
const source = new VectorSource({
format: new GeoJSON(),
url: './data/features (1).json'
})
const layer = new VectorLayer({
source: source
});
map.addLayer(layer);