No need to update the style when no source is set
This commit is contained in:
@@ -390,7 +390,9 @@ class WebGLTileLayer extends BaseTileLayer {
|
|||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
handleSourceUpdate_() {
|
handleSourceUpdate_() {
|
||||||
this.setStyle(this.style_);
|
if (this.getSource()) {
|
||||||
|
this.setStyle(this.style_);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user