add marker onIdle event