API Reference
Comprehensive documentation for all components, hooks, and utilities in the React Google Maps API library.Core Components
GoogleMap
The main map component for rendering Google Maps
LoadScript
Component for loading the Google Maps JavaScript API
LoadScriptNext
Enhanced script loader with improved performance
Marker
Place markers on the map
Hooks
useLoadScript
Hook for loading Google Maps API script
useJsApiLoader
Modern hook using @googlemaps/js-api-loader
useGoogleMap
Access the map instance from any child component
Drawing Components
Polyline
Draw lines on the map
Polygon
Draw polygons on the map
Circle
Draw circles on the map
Rectangle
Draw rectangles on the map
Services
DirectionsService
Calculate directions between locations
DistanceMatrixService
Calculate travel distance and time
Autocomplete
Place autocomplete functionality
Layers
TrafficLayer
Display real-time traffic information
HeatmapLayer
Visualize data intensity
BicyclingLayer
Show bicycle routes
TransitLayer
Display public transit routes
Advanced Components
InfoWindow
Display information in a popup window
OverlayView
Create custom map overlays
MarkerClusterer
Cluster markers for better performance
DrawingManager
Enable drawing tools on the map