You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-easy-google-maps

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-easy-google-maps

A component for react that provides integration with google maps. Install it, put the API key in the component and you're done.

1.0.6
Source
npmnpm
Version published
Weekly downloads
13
Maintainers
0
Weekly downloads
 
Created
Source

more used language used languages last commit stars

React Easy Map

React Easy Google Maps is a React component that facilitates integration with Google Maps. With this component, you can easily add a map to your React application by simply providing the coordinates (latitude and longitude) and a Google Maps API key, without more configuration.

Install

To use the component in your project, install it via npm:

npm install react-easy-google-maps

Or, if you're using yarn:

yarn add react-easy-google-maps

Use/Examples

import React from 'react';
import { EasyMap, MapProvider } from 'react-easy-google-maps';

const MyComponent = () => {
  const apiKey = "SUA_GOOGLE_MAPS_API_KEY"; // Substitua pela sua chave de API
  const lat = -23.55052; // Exemplo de latitude
  const lon = -46.633308; // Exemplo de longitude

  return (
    <MapProvider api_key={apiKey}>
      <EasyMap lat={lat} lon={lon} />
    </MapProvider>
  );
};

export default MyComponent;

Reference

  • Google Maps API Docs

Documentation

Documentação

Licença

ISC

Sponsor

Stripe

🚀 About me

I'm developer

Keywords

maps

FAQs

Package last updated on 18 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts