b = map_name.showCurrentLocation(show_condition);
The
Map.showCurrentLocation function enables or disables display of the device's current location on the
Map object map_name. If
show_condition is non-zero, the current location is displayed on the map as a blue dot. As the user moves around, the blue dot also moves to follow the user's position.
In addition, there is a button on the right side of the map (shown below) that allows the user to zoom to their current location. If show_location is zero, both the blue dot and associated button are hidden. Display of the current location is enabled by default.
Zoom To Button
The function returns a logical value of 1 (true).