Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: map user geolocation #223

Merged
merged 1 commit into from
Dec 18, 2024
Merged

feat: map user geolocation #223

merged 1 commit into from
Dec 18, 2024

Conversation

albert1413
Copy link
Contributor

@albert1413 albert1413 commented Dec 18, 2024

This pull request introduces a new feature to the app/src/app/Views/Admin/Inventory.php file, which enhances the user experience by utilizing the user's geolocation to interact with the map.

Geolocation feature:

  • Added code to obtain the user's current position using the navigator.geolocation.getCurrentPosition method, and create a marker on the map at the user's location.
  • Included functionality to center the map on the user's location and adjust the zoom level for better visibility.
  • Implemented error handling to log any issues encountered while obtaining the user's location.
  • Configured geolocation options for higher accuracy, a timeout limit, and to always use fresh data.

@albert1413 albert1413 requested a review from a team as a code owner December 18, 2024 18:52
@github-actions github-actions bot added kind/feature Categorizes issue or PR as related to a new feature. area/app/views Categorizes issue or PR as related to app/views. labels Dec 18, 2024
Copy link

codecov bot commented Dec 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

❌ We are unable to process any of the uploaded JUnit XML files. Please ensure your files are in the right format.

Additional details and impacted files
@@           Coverage Diff           @@
##              main    #223   +/-   ##
=======================================
  Coverage     4.47%   4.47%           
  Complexity     316     316           
=======================================
  Files           95      95           
  Lines         3014    3014           
=======================================
  Hits           135     135           
  Misses        2879    2879           
Files with missing lines Coverage Δ Complexity Δ
app/src/app/Views/Admin/Inventory.php 0.00% <ø> (ø) 0.00 <0.00> (ø)

@0x1026 0x1026 changed the title feat: map location feat: map user geolocation Dec 18, 2024
@0x1026 0x1026 merged commit 9c4f9b7 into main Dec 18, 2024
14 checks passed
@0x1026 0x1026 deleted the feat/inventary-geomap branch December 18, 2024 18:57
@0x1026 0x1026 added this to the Sprint 3 - Prototype milestone Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/app/views Categorizes issue or PR as related to app/views. kind/feature Categorizes issue or PR as related to a new feature.
Projects
Status: Fet
Development

Successfully merging this pull request may close these issues.

2 participants