added pan_on_click global and location specific option