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

Enhance business pop-up with more details #49

Merged
merged 3 commits into from
Sep 22, 2024
Merged

Conversation

bronthulke
Copy link
Owner

@bronthulke bronthulke commented Sep 22, 2024

Fixes #48

Add more details to business pop-up in src/maplib.js.

  • Add a photo, detailed description, and a button to link out to Google Maps directions in the infoWindow content.
  • Use the photos property of the business object to get the photo.
  • Use the rating and user_ratings_total properties of the business object to get the detailed description.
  • Use the place_id property of the business object to create the link to Google Maps directions.
  • Close any open pop-ups when opening a new one by adding a single infoWindow instance to the MapLib class.

For more details, open the Copilot Workspace session.

Fixes #48

Add more details to business pop-up in `src/maplib.js`.

- Add a photo, detailed description, and a button to link out to Google Maps directions in the `infoWindow` content.
- Use the `photos` property of the `business` object to get the photo.
- Use the `rating` and `user_ratings_total` properties of the `business` object to get the detailed description.
- Use the `place_id` property of the `business` object to create the link to Google Maps directions.
- Close any open pop-ups when opening a new one by adding a single `infoWindow` instance to the `MapLib` class.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/bronthulke/radius-checker/issues/48?shareId=XXXX-XXXX-XXXX-XXXX).
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-mud-014f9e91e-49.westus2.azurestaticapps.net

…ion, and directions link in `infoWindow` content

* Use `photos` property of `business` object to get the photo
* Use `rating` and `user_ratings_total` properties of `business` object to get the detailed description
* Use `geometry.location` property of `business` object to create the link to Google Maps directions
* Close any open pop-ups when opening a new one
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-mud-014f9e91e-49.westus2.azurestaticapps.net

…ion, and directions link in `infoWindow` content

* Use `photos` property of `business` object to get the photo
* Use `rating` and `user_ratings_total` properties of `business` object to get the detailed description
* Use `place_id` property of `business` object to create the link to Google Maps directions
* Close any open pop ups when opening a new one or when clicking off it
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-mud-014f9e91e-49.westus2.azurestaticapps.net

@bronthulke bronthulke merged commit 5a5266b into master Sep 22, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Business Pop Up More Detail
1 participant