remove setLayerType because of low API