No need to update the style when no source is set

This commit is contained in:
Maximilian Krög
2022-02-06 21:43:38 +01:00
parent 5fec74c089
commit a10872baa4
+2
View File
@@ -390,8 +390,10 @@ class WebGLTileLayer extends BaseTileLayer {
* @private * @private
*/ */
handleSourceUpdate_() { handleSourceUpdate_() {
if (this.getSource()) {
this.setStyle(this.style_); this.setStyle(this.style_);
} }
}
/** /**
* @private * @private