department-of-veterans-affairs / va.gov-cms

Editor-centered management for Veteran-centered content.
https://prod.cms.va.gov
GNU General Public License v2.0
98 stars 69 forks source link

Map thumbnails for Vet Center CAPs do not render on the locations page #15656

Open mmiddaugh opened 1 year ago

mmiddaugh commented 1 year ago

Description

A Vet Center Locations page displays listings for the Main Vet Center along with, if affiliated, Outstations, Mobile Vet Centers, and CAPs.

Map thumbnails are displayed for the Main Vet Center and for Outstations but not for CAPs. Example: On the Nashville Vet Center Locations page

CAPs have a visible thumbnail in the Drupal interface but it is not rendered on the front end. The page briefly appears to try and load but ultimately, the map is not displayed.

Steps to reproduce

  1. View the Nashville Vet Center - Bowling Green CAP node in edit mode
  2. Scroll down page and observe the map is visible in the Geolocation block
  3. Visit the Nashville Vet Center Locations page
  4. Observe no map is displayed for Nashville Vet Center - Bowling Green

Note: map thumbnails are not expected for Mobile Vet Centers

Screenshots

Screenshot of CMS node for CAP image.png

Screenshot of Locations page image.png

Acceptance criteria

mmiddaugh commented 1 year ago

@xiongjaneg I think this might be a regression - I thought we previously displayed these

mmiddaugh commented 4 months ago

Will consider this in context of Vet Center 2.0

davidmpickett commented 4 months ago

Pretty sure this is blocked by #9727 or #4411. Map images are called from dynamically from Facilities API via Vets Website (rather than statically generated from Drupal data via Content Build). Vet Center CAPs were not in previous iteration of the API. If they were added to Lighthouse v1 (and therefore available in Vets API v2), then this would be an enhancement.