Skip to content

feat: migrate to modern Google Maps API#3

Merged
isamu merged 4 commits intomainfrom
fix-google-maps-loading
Jan 24, 2026
Merged

feat: migrate to modern Google Maps API#3
isamu merged 4 commits intomainfrom
fix-google-maps-loading

Conversation

@isamu
Copy link
Copy Markdown
Contributor

@isamu isamu commented Jan 24, 2026

Summary

  • Migrate from deprecated google.maps.Marker to AdvancedMarkerElement
  • Migrate from deprecated PlacesService.textSearch to Place.searchByText
  • Add loading=async parameter to Google Maps script URL
  • Load libraries dynamically using google.maps.importLibrary()
  • Add mapId to Map constructor (required for AdvancedMarkerElement)
  • Update CLAUDE.md to document current API usage

Changes

  • View.vue: Complete API migration with modern patterns
  • CLAUDE.md: Updated to document current Google Maps API usage

🤖 Generated with Claude Code

isamu and others added 2 commits January 25, 2026 07:14
- Add loading=async parameter to improve performance
- Document pending API migrations in CLAUDE.md (PlacesService, Marker)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Replace deprecated Marker with AdvancedMarkerElement
- Replace deprecated PlacesService.textSearch with Place.searchByText
- Add loading=async to script URL
- Load marker and places libraries dynamically with importLibrary()
- Add required mapId for AdvancedMarkerElement
- Update CLAUDE.md to document current API usage

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@isamu isamu changed the title fix: add loading=async to Google Maps script URL feat: migrate to modern Google Maps API Jan 24, 2026
isamu and others added 2 commits January 25, 2026 07:28
- Remove v-html usage (XSS risk) - use stripHtml() instead
- Add 10s timeout to Google Maps script polling
- Fix Map mutation during iteration in searchPlaces
- Fix incorrect openNow logic (isOpen() is async)
- Add production Map ID documentation comment

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add startLocation/endLocation to DirectionStep type
- Make direction steps clickable with hover effect
- Navigate to step location and zoom to 18 on click

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@isamu isamu merged commit 6541505 into main Jan 24, 2026
1 check 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.

1 participant