Added the functionality to turn Location service of device on from within the app
Added code to ask for location permission
Created a new Map Screen to show map with user location
Description
A new screen has been created that can, for now, be accessed from the 'GPS' icon on the app bar. This screen prompts the user for permission for accessing device's location and to turn on the GPS service of the device. Once given the permission, the screen loads a map with street view and drops a marker at user's current location.
For the map, MapBox has been used as this is the same map service that's used in the current android version of the app and is also a trusted and reliable map service.
This is just a temporary implementation of a much bigger function that will be used in the app. This feature will be picked up and developed further during the GSoC period. The purpose of creation of this feature was to ensure that we don't have to create everything from scratch but have something to build on during the summer.
Changes
Description
A new screen has been created that can, for now, be accessed from the 'GPS' icon on the app bar. This screen prompts the user for permission for accessing device's location and to turn on the GPS service of the device. Once given the permission, the screen loads a map with street view and drops a marker at user's current location.
For the map, MapBox has been used as this is the same map service that's used in the current android version of the app and is also a trusted and reliable map service.
This is just a temporary implementation of a much bigger function that will be used in the app. This feature will be picked up and developed further during the GSoC period. The purpose of creation of this feature was to ensure that we don't have to create everything from scratch but have something to build on during the summer.