Fix type error in ol.layer.Layer