Geolocation permission check

Hi

I have a map where i plot the user position.

I wonder how to ask again for permission if the user turns of location or didn’t accept it when it started the app?

So i ask every time a user views the map if permission is off.

Is this doable?