Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,17 @@ interface MapToolData {
- `src/vue/View.vue`: Main map display component
- `src/vue/Preview.vue`: Sidebar preview component

### Google Maps API Usage

This plugin uses modern Google Maps JavaScript API:

- **AdvancedMarkerElement**: For map markers (requires `marker` library and `mapId`)
- **Place.searchByText**: For place search functionality (new Places API)
- **Geocoder**: For address-to-coordinates conversion
- **DirectionsService**: For route calculation

Libraries loaded: `places,marker` with `loading=async`

## Updating This Document

**IMPORTANT**: When making spec changes or improvements to this plugin through discussion with Claude:
Expand Down
2 changes: 2 additions & 0 deletions src/core/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ export interface DirectionStep {
distance: string;
duration: string;
travelMode: string;
startLocation?: LatLng;
endLocation?: LatLng;
}

// Route information from Directions API
Expand Down
Loading