Type alias SourceType

SourceType: "vector" | "json" | "raster" | "raster-dem" | "sensor" | "markers" | "overlay"

Check the source type of the layer. If "overlay" then an old engine was used