resizeCanvas(canvasSize) {
    if (!this.canvas) return;
    const size = canvasSize || this.getMap().getSize();
    this.canvas.height = retina * size.height;
    this.canvas.width = retina * size.width;
    this.gl.viewport(0, 0, this.canvas.width, this.canvas.height);
  }
/**
   * when map changed, call canvas change
   * @param canvasSize
   */
when map changed, call canvas change
@param canvasSize
when map changed call canvas change @param canvasSize
resizeCanvas(canvasSize) {
    if (!this.canvas) return;
    const size = canvasSize || this.getMap().getSize();
    this.canvas.height = retina * size.height;
    this.canvas.width = retina * size.width;
    this.gl.viewport(0, 0, this.canvas.width, this.canvas.height);
  }
resizeCanvas ( canvasSize ) { if ( ! this . canvas ) return ; const size = canvasSize || this . getMap ( ) . getSize ( ) ; this . canvas . height = retina * size . height ; this . canvas . width = retina * size . width ; this . gl . viewport ( 0 , 0 , this . canvas . width , this . canvas . height ) ; }
when map changed, call canvas change
 @param canvasSize
when map changed call canvas change @param canvasSize