Welcome back.
If we double tap on the map, the map will zoom in so we can control the double tap gesture.
The default behavior of double tapping gesture zooms in the map by one level.
You can override this using the UI setting parameter.
Let me scroll up inside the Google map parameters we can discover the Google map and here we have something
called UI settings.
If we open the UI settings, we can control all those gestures.
Compass enabled we can set the compass.
We can set the indoor level picker map toolbar, my location button enabled rotation gesture, scroll,
gesture and tilt zoom control, and so on.
Let me start by controlling the UI settings, map UI settings, And here specify the zoom controls enabled
or zoom gestures.
I need to disable the user from clicking and double tapping the map to zoom in.
Zoom controls enabled equals to false.
Let me run now and see if the zoom gesture is enabled or not.
Here we have.
This is our map.
Double tap double tap.
Oops.
The zoom controls are hidden and not the gestures.
Let me use the zoom gestures enabled run again.
You can notice that zoom controls are enabled and the double tap is disabled.
This is how we control the UI settings of the map.
Also, we can um, like for example, uh, disable others and enable other settings.
For example, if I want to display the compass, uh, on our map here, let me start by compass enabled
equals to true run if we rotate the map.
You can notice that there is a needle here, a compass icon displayed.
If I click on it, it will display the north for me.
Okay.
If I rotate the screen again you can notice that needle is now to the north.
Okay so this is the compass enabled parameter.
There are many parameters that I can specify.
For example my location button enabled.
Let me show you my location button enabled.
Set it to true.
Run again.
Open the extended controls for the emulator by clicking on this, uh this icon three dots.
And this is the Device Extended Controls set.
Go to the location and enable GPS signal and make sure that the location is specified and allowed in
your settings.
So go to the settings of the emulator, search for location and turn it on.
The location is turned on, but there is no app recently accessed.
Location.
We need to specify the location, uh, location permissions in the Android manifest.
So instead of only using the internet permission, we need to use Access network.
State the course location and find location.
The find location and the course location specify allows us to get the correct position of our, uh,
emulator and display our current position on the map.
Okay.
Let me run again.
And here we have our app.
Now we need to check if our app accessed that location.
And it's allowed to get the location from the phone settings.
So go to settings, search for apps, select the maps app and you can notice that no permissions granted.
Click on permissions.
Select the location and allow only when using the app.
Okay, use that precise location.
Go back and run again.
Our application and everything is working fine.
Later, when we display our custom marker on our position, we're going to display a marker on our current
position.
So here you can set in the location the extended controls.
You can you can set like this as a current and a custom location for your current position.
Set location and the location has been set it to this point.
Okay.
So later when we display the marker on our current position, it will appear here in the Manhattan and
New York.
Okay.