Geo-Web-Project / browser

An interface that uses geolocation to navigate/resolve content on the Geo Web.
MIT License
3 stars 8 forks source link

Current location is overriding manual location entered via URL #30

Closed gravenp closed 2 years ago

gravenp commented 2 years ago

Describe the bug When the Spatial Browser is opened using the manual location URL convention (i.e. https://geoweb.app/??latitude={number}&longitude={number}), instead of showing the content at that location, it is showing content at the current device location.

To Reproduce Steps to reproduce the behavior:

  1. Open the Spatial Browser with a URL corresponding to a known parcel with content (not your current location)
  2. Accept location permissions if you haven't yet
  3. Browser will show the content at your current location (or be stuck pending if you don't accept the prompt)
  4. Open the Settings menu
  5. Location will be set to Manual and the correct lat & long will be populated
  6. Click Go to view the content at the manual location

Expected behavior When the Spatial Browser is opened with the location URL convention, default to showing the content at the appropriate location without any additional interaction--even if the user accepts location permissions upon initial loading.