Added autoPan Option, to shift the map when the sidebar is shown or not