Skip to content

Conversation

@dfalling
Copy link
Owner

Add lit-google-map-location-button component that provides a native-looking
button for centering the map on the user's current location. The component:

  • Uses the browser's Geolocation API to get user location
  • Adds a control button to the map at a configurable position
  • Centers the map on user location when clicked
  • Dispatches events for location-found, location-error, location-requested
  • Supports disabled state and loading animation

The main map component now supports a "controls" slot for adding custom
controls following the same pattern as markers and shapes.

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com

Add lit-google-map-location-button component that provides a native-looking
button for centering the map on the user's current location. The component:
- Uses the browser's Geolocation API to get user location
- Adds a control button to the map at a configurable position
- Centers the map on user location when clicked
- Dispatches events for location-found, location-error, location-requested
- Supports disabled state and loading animation

The main map component now supports a "controls" slot for adding custom
controls following the same pattern as markers and shapes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@dfalling dfalling force-pushed the add-location-button branch from f23bda4 to 73761d2 Compare December 28, 2025 09:36
@dfalling dfalling self-assigned this Dec 28, 2025
@dfalling dfalling merged commit 8abee61 into main Dec 28, 2025
4 checks passed
@dfalling dfalling deleted the add-location-button branch December 28, 2025 09:39
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.

2 participants