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