The
ol/control/GeolocationButton is a simple control button to center on the device position.
It centers the map and displays position. Use the
delay option to change the time the position appears on the map.
Listen to the
position event to get position when activated.
Use the
getInteraction() method to get the ol
GeolocationDraw interation.