Skip to content

Releases: Franqsanz/vite-plugin-google-maps

v0.0.4 — Debug Panel Improvements & New Map Controls

26 Feb 18:01
45654cb

Choose a tag to compare

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: true is enabled:
    • mapTypeId — current map type (roadmap, satellite, hybrid, terrain)
    • mapId — active Map ID in use
    • gestureHandling — current interaction mode
    • tilt and heading — current tilt angle and rotation
    • bounds — 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

Links