This version is old school.
Please find jQuery plugins on npm.
jQuery Position Picker
A jQuery plugin that creates a location picker on your webpage with a simple input form. It uses OpenLayer as map view and uses Google geocoding services to look for the address and elevation of selected point. All actions trigger a signals to hock the activity.