Refactored location picker initialization into createMapWidget() function.
Added event listener to allow location selection by click.