react-google-maps

Integrate the Google Maps JavaScript API into React/Next.js apps with @vis.gl/react-google-maps.

1|Updated Jul 15, 2025
One-click install
npx skills add https://github.com/marjan-ahmed/ustaz --skill react-google-maps-marjan-ahmed
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: react-google-maps
Source: https://github.com/marjan-ahmed/ustaz/tree/main/.claude/skills/react-google-maps
Command: npx skills add https://github.com/marjan-ahmed/ustaz --skill react-google-maps-marjan-ahmed

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides a robust, ready-to-use React integration with the Google Maps JavaScript API, enabling developers to quickly add interactive maps, markers, and UI components to React/Next.js apps without boilerplate.

Core Features & Use Cases

  • Supports Map, AdvancedMarker, Pin, InfoWindow, Autocomplete, Geocoding, and drawing tools for rich mapping experiences in React.
  • Real-world use cases include embedding store locators, route planning UI, and geospatial dashboards in Next.js projects.
  • Example scenario: implement a searchable map with draggable markers and live InfoWindows to visualize customer locations.

Quick Start

Install the library and wrap your app with APIProvider, then render a Map with a marker and basic controls.

Frequently Asked Questions about react-google-maps

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate Google Maps into a React application?▼

You integrate Google Maps in React using the @vis.gl/react-google-maps library, which requires a valid API key and a mapId on the Map component to render interactive maps, markers, and UI elements without boilerplate.

Can I use Google Maps Autocomplete and Geocoding features in Next.js?▼

Yes, you can use Google Maps Autocomplete and Geocoding in Next.js. This integration supports searchable maps with draggable markers, live InfoWindows, and location-based UI for use cases like store locators.

Do I need a Google Maps API key to display interactive maps in React?▼

Yes, a valid Google Maps API key is required. You must wrap your application with the APIProvider component from the @vis.gl/react-google-maps library and configure a mapId on the Map component.

What is the best way to add custom markers and InfoWindows to a React map?▼

The best way to add markers and InfoWindows to a React map is using the @vis.gl/react-google-maps library, which provides AdvancedMarker, Pin, and InfoWindow components to deliver rich mapping experiences and visualize locations interactively.

Does this React Google Maps integration support drawing tools for route planning?▼

Yes, this React Google Maps integration supports drawing tools. It covers markers, info windows, autocomplete, geocoding, and drawing tools, enabling route planning UI and geospatial dashboards in Next.js projects.