add autocenter option for vector layer