enviroCar / enviroCar-Cross-Platform-App

10 stars 14 forks source link

Created permission for GPS and screen to show map with user location #4

Closed D-Ajay-Kumar closed 3 years ago

D-Ajay-Kumar commented 3 years ago

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.