refactor code for live map in code editor
center map on existing lines / coordinates