Releases: Franqsanz/vite-plugin-google-maps
Releases · Franqsanz/vite-plugin-google-maps
v0.0.4 — Debug Panel Improvements & New Map Controls
vite-plugin-google-maps v0.0.4
⚠️ This project is still experimental. Breaking changes may occur between minor versions.
What's new
- Extended Debug Panel: Added new fields to the developer tools panel when
debug: trueis enabled:mapTypeId— current map type (roadmap, satellite, hybrid, terrain)mapId— active Map ID in usegestureHandling— current interaction modetiltandheading— current tilt angle and rotationbounds— visible map boundaries (north, south, east, west)
- Copy Config Button: Copies the full map configuration to clipboard (center, zoom, tilt, heading, mapId, typeId, bounds)
- My Location Button: Centers the map using browser geolocation
- Reset Button: Restores the initial map configuration from plugin options
New mapDefaults options
Added support for additional map UI controls in GoogleMapsPlugin:
| Option | Type | Default |
|---|---|---|
zoomControl |
boolean |
true |
mapTypeControl |
boolean |
false |
scaleControl |
boolean |
false |
streetViewControl |
boolean |
true |
rotateControl |
boolean |
false |
TypeScript
Added documentation for declaring the @google-maps/map virtual module in your project to get full type safety and autocomplete.
Installation
pnpm install vite-plugin-google-maps@0.0.4