added supoort for centering main marker