connecting osmLayer to object idle mechanism